-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #382 from fujaba/feat/copy-assignees
Copy Assignees
- Loading branch information
Showing
14 changed files
with
162 additions
and
35 deletions.
There are no files selected for viewing
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
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
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
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
30 changes: 16 additions & 14 deletions
30
...tend/src/app/assignment/modules/shared/assignee-dropdown/assignee-dropdown.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 |
---|---|---|
@@ -1,23 +1,25 @@ | ||
<div ngbDropdown> | ||
<div ngbDropdown #dropdown=ngbDropdown> | ||
<button ngbDropdownToggle class="btn p-0 text-white text-shadow" | ||
[class.bi-person-plus]="!assignee" | ||
[ngbTooltip]="assignee || 'Add Assignee'" | ||
> | ||
{{ (assignee || '') | initials }} | ||
</button> | ||
<div ngbDropdownMenu> | ||
<button *ngFor="let suggestion of assignees" ngbDropdownItem (click)="assignee = suggestion; save()"> | ||
<span class="badge" [style.background-color]="suggestion | assigneeColor">{{ suggestion | initials }}</span> | ||
{{ suggestion }} | ||
</button> | ||
<button ngbDropdownItem class="bi-person-x" (click)="this.assignee = ''; save()"> | ||
Unassign | ||
</button> | ||
<div class="dropdown-item-text"> | ||
<label class="form-label" for="custom-assignee"> | ||
Custom Assignee | ||
</label> | ||
<input type="text" class="form-control" id="custom-assignee" [(ngModel)]="assignee" (change)="save()"> | ||
</div> | ||
<ng-container *ngIf="dropdown.isOpen()"> | ||
<button *ngFor="let suggestion of assignees" ngbDropdownItem (click)="save(suggestion)"> | ||
<span class="badge" [style.background-color]="suggestion | assigneeColor">{{ suggestion | initials }}</span> | ||
{{ suggestion }} | ||
</button> | ||
<button ngbDropdownItem class="bi-person-x" (click)="save(undefined)"> | ||
Unassign | ||
</button> | ||
<div class="dropdown-item-text"> | ||
<label class="form-label" for="custom-assignee"> | ||
Custom Assignee | ||
</label> | ||
<input type="text" class="form-control" id="custom-assignee" [(ngModel)]="assignee" (change)="save(assignee)"> | ||
</div> | ||
</ng-container> | ||
</div> | ||
</div> |
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
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
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