diff options
author | Chocobozzz <me@florianbigard.com> | 2018-11-21 17:05:31 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-11-21 17:05:31 +0100 |
commit | f97c91f7ec4afc26ab790fbefa63d11b3060f40f (patch) | |
tree | d7548e28e0bb645cc0bdbc4620f868303444a194 /client/src/app/shared/buttons/action-dropdown.component.html | |
parent | 9fa0ea41aaa511bed3aa179dacc312fad6170c21 (diff) | |
download | PeerTube-f97c91f7ec4afc26ab790fbefa63d11b3060f40f.tar.gz PeerTube-f97c91f7ec4afc26ab790fbefa63d11b3060f40f.tar.zst PeerTube-f97c91f7ec4afc26ab790fbefa63d11b3060f40f.zip |
Add separators in user moderation dropdown
Diffstat (limited to 'client/src/app/shared/buttons/action-dropdown.component.html')
-rw-r--r-- | client/src/app/shared/buttons/action-dropdown.component.html | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/client/src/app/shared/buttons/action-dropdown.component.html b/client/src/app/shared/buttons/action-dropdown.component.html index 48230d6d8..90651f217 100644 --- a/client/src/app/shared/buttons/action-dropdown.component.html +++ b/client/src/app/shared/buttons/action-dropdown.component.html | |||
@@ -8,14 +8,20 @@ | |||
8 | </div> | 8 | </div> |
9 | 9 | ||
10 | <div ngbDropdownMenu class="dropdown-menu"> | 10 | <div ngbDropdownMenu class="dropdown-menu"> |
11 | <ng-container *ngFor="let action of actions"> | 11 | <ng-container *ngFor="let actions of getActions()"> |
12 | <ng-container *ngIf="action.isDisplayed === undefined || action.isDisplayed(entry) === true"> | ||
13 | <a *ngIf="action.linkBuilder" class="dropdown-item" [routerLink]="action.linkBuilder(entry)">{{ action.label }}</a> | ||
14 | 12 | ||
15 | <span *ngIf="!action.linkBuilder" class="custom-action dropdown-item" (click)="action.handler(entry)" role="button"> | 13 | <ng-container *ngFor="let action of actions"> |
16 | {{ action.label }} | 14 | <ng-container *ngIf="action.isDisplayed === undefined || action.isDisplayed(entry) === true"> |
17 | </span> | 15 | <a *ngIf="action.linkBuilder" class="dropdown-item" [routerLink]="action.linkBuilder(entry)">{{ action.label }}</a> |
16 | |||
17 | <span *ngIf="!action.linkBuilder" class="custom-action dropdown-item" (click)="action.handler(entry)" role="button"> | ||
18 | {{ action.label }} | ||
19 | </span> | ||
20 | </ng-container> | ||
18 | </ng-container> | 21 | </ng-container> |
22 | |||
23 | <div class="dropdown-divider"></div> | ||
24 | |||
19 | </ng-container> | 25 | </ng-container> |
20 | </div> | 26 | </div> |
21 | </div> \ No newline at end of file | 27 | </div> |