Team member improvements

This commit is contained in:
Adina Țeudan 2021-05-11 18:07:41 +03:00
parent 42c5e53bdc
commit e3c8b20205
3 changed files with 3 additions and 8 deletions

View File

@ -67,7 +67,7 @@
<redaction-round-checkbox [active]="isApprover(userId)" class="mr-8"></redaction-round-checkbox>
<span [translate]="'assign-' + data.type + '-owner.dialog.make-approver'"></span>
</div>
<mat-icon *ngIf="!isOwner(userId)" [svgIcon]="'red:' + (isMemberSelected(userId) ? 'close' : 'check')"></mat-icon>
<mat-icon *ngIf="!isOwner(userId)" svgIcon="red:check"></mat-icon>
</div>
</div>
</div>

View File

@ -55,15 +55,9 @@ redaction-team-members {
}
}
&.selected {
.actions {
display: flex;
}
}
&.selected,
&:hover {
background-color: $grey-2;
.actions {
display: flex;
}

View File

@ -61,6 +61,7 @@ export class AssignOwnerDialogComponent {
const searchQuery = this.searchForm.get('query').value;
return this.userService.eligibleUsers
.filter((user) => this.userService.getNameForId(user.userId).toLowerCase().includes(searchQuery.toLowerCase()))
.filter((user) => this.selectedSingleUser !== user.userId)
.map((user) => user.userId);
}