This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New UI for Assignee dropdown (#2355)
* assignee-selector component * fix(template): Replaced depricated template with ng-tempalte * fix(assignee): Multiple assignees done * fix(assignee-dropdown): add assignee dropdown to full details * fix(preview): Removed unwanted code * fix(preview): Fetching list of users on opening the assignee dropdown * fix(preview): Multiple assignee issue fixed * fix(avatar): fix avatar on assignees component * fix(assignees): fix tests for assignees and add html for unassigned * fix(tests): fix tests(specs) for assignees * fix(detail-page):fix user unassign icon * fix(assignee): fix assigne column width
- Loading branch information
1 parent
0286912
commit 2fa2534
Showing
25 changed files
with
652 additions
and
691 deletions.
There are no files selected for viewing
270 changes: 66 additions & 204 deletions
270
runtime/src/tests/work-item/work-item-list/assign.spec.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/app/components/assignee-selector/assignee-selector.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<f8-select-dropdown | ||
id="f8-add-assignee-dropdown" | ||
#dropdown | ||
*ngIf="assignees.length" | ||
[toggleButtonRef]="toggleButtonRef" | ||
[dropdownItem]="dropdownItem" | ||
[headerText]="'Add Assignee'" | ||
[menuItems]="assignees" | ||
[showSearch]="backup.length > 2" | ||
(onSelect)="onSelect($event)" | ||
(onSearch)="onSearch($event)" | ||
(onOpen)="onOpen($event)" | ||
(onClose)="onClose($event)"> | ||
<ng-template #toggleButtonRef> | ||
<span class="clickable add-label" | ||
id="f8-add-assignee" | ||
(click)="closeAddAssignee()"> | ||
<i class="pficon pficon-add-circle-o"></i> | ||
Add Assignee | ||
</span> | ||
</ng-template> | ||
<ng-template #dropdownItem let-name="name" | ||
let-src="src + '&s=20'" | ||
let-stickontop="stickontop"> | ||
<div class="user-avatar margin-right-10 pull-left"> | ||
<img | ||
class="user-assign-avatar" | ||
[src]="src | almAvatarSize: 20" | ||
onError="this.src='https://avatars0.githubusercontent.com/u/563119?v=3&s=20'"/> | ||
</div> | ||
<span *ngIf="!stickontop" [innerHTML]="name | almSearchHighlight: searchValue"></span> | ||
<span | ||
*ngIf="stickontop" | ||
[innerHTML]="(name | almSearchHighlight: searchValue) + ' (me)'" | ||
class="bold"></span> | ||
</ng-template> | ||
</f8-select-dropdown> |
12 changes: 12 additions & 0 deletions
12
src/app/components/assignee-selector/assignee-selector.component.less
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@import '../../../assets/stylesheets/_base'; | ||
|
||
.clickable { | ||
cursor: pointer; | ||
} | ||
.add-label { | ||
color: @color-pf-blue-300; | ||
font-weight: 600; | ||
} | ||
.bold { | ||
font-weight: 600; | ||
} |
Oops, something went wrong.