Merge pull request #4984 from tsiegleauq/motion-list-menu-order
Reorder motion list menu
This commit is contained in:
commit
4665c5be32
@ -214,12 +214,16 @@
|
|||||||
|
|
||||||
<mat-menu #motionListMenu="matMenu">
|
<mat-menu #motionListMenu="matMenu">
|
||||||
<div *ngIf="!isMultiSelect">
|
<div *ngIf="!isMultiSelect">
|
||||||
|
<!-- Multiselect -->
|
||||||
<div *ngIf="perms.isAllowed('change_metadata') && selectedView === 'list'">
|
<div *ngIf="perms.isAllowed('change_metadata') && selectedView === 'list'">
|
||||||
<button mat-menu-item (click)="toggleMultiSelect()">
|
<button mat-menu-item (click)="toggleMultiSelect()">
|
||||||
<mat-icon>library_add</mat-icon>
|
<mat-icon>library_add</mat-icon>
|
||||||
<span translate>Multiselect</span>
|
<span translate>Multiselect</span>
|
||||||
</button>
|
</button>
|
||||||
|
<mat-divider></mat-divider>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Amendments -->
|
||||||
<div *ngIf="perms.isAllowed('manage') || hasAmendments()">
|
<div *ngIf="perms.isAllowed('manage') || hasAmendments()">
|
||||||
<button mat-menu-item routerLink="amendments">
|
<button mat-menu-item routerLink="amendments">
|
||||||
<!-- color_lens -->
|
<!-- color_lens -->
|
||||||
@ -228,48 +232,68 @@
|
|||||||
<span translate>Amendments</span>
|
<span translate>Amendments</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="perms.isAllowed('manage')">
|
|
||||||
<button mat-menu-item routerLink="call-list">
|
<!-- Categories -->
|
||||||
<mat-icon>sort</mat-icon>
|
|
||||||
<span translate>Call list</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div *ngIf="perms.isAllowed('manage') || categories.length">
|
<div *ngIf="perms.isAllowed('manage') || categories.length">
|
||||||
<button mat-menu-item routerLink="category">
|
<button mat-menu-item routerLink="category">
|
||||||
<mat-icon>category</mat-icon>
|
<mat-icon>category</mat-icon>
|
||||||
<span translate>Categories</span>
|
<span translate>Categories</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Motion blocks -->
|
||||||
<div *ngIf="perms.isAllowed('manage') || motionBlocks.length">
|
<div *ngIf="perms.isAllowed('manage') || motionBlocks.length">
|
||||||
<button mat-menu-item routerLink="blocks">
|
<button mat-menu-item routerLink="blocks">
|
||||||
<mat-icon>widgets</mat-icon>
|
<mat-icon>widgets</mat-icon>
|
||||||
<span translate>Motion blocks</span>
|
<span translate>Motion blocks</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<mat-divider
|
||||||
|
*ngIf="categories.length || motionBlocks.length || hasAmendments() || perms.isAllowed('manage')"
|
||||||
|
></mat-divider>
|
||||||
|
|
||||||
<div *ngIf="perms.isAllowed('manage')">
|
<div *ngIf="perms.isAllowed('manage')">
|
||||||
|
<!-- Call list -->
|
||||||
|
<button mat-menu-item routerLink="call-list">
|
||||||
|
<mat-icon>sort</mat-icon>
|
||||||
|
<span translate>Call list</span>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<!-- Statutes -->
|
||||||
<button mat-menu-item routerLink="statute-paragraphs" *ngIf="statutesEnabled">
|
<button mat-menu-item routerLink="statute-paragraphs" *ngIf="statutesEnabled">
|
||||||
<mat-icon>account_balance</mat-icon>
|
<mat-icon>account_balance</mat-icon>
|
||||||
<span translate>Statute</span>
|
<span translate>Statute</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<!-- Comments -->
|
||||||
<button mat-menu-item routerLink="comment-section">
|
<button mat-menu-item routerLink="comment-section">
|
||||||
<mat-icon>speaker_notes</mat-icon>
|
<mat-icon>speaker_notes</mat-icon>
|
||||||
<span translate>Comment fields</span>
|
<span translate>Comment fields</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<!-- Workflows -->
|
||||||
<button mat-menu-item routerLink="workflow">
|
<button mat-menu-item routerLink="workflow">
|
||||||
<mat-icon>build</mat-icon>
|
<mat-icon>build</mat-icon>
|
||||||
<span translate>Workflows</span>
|
<span translate>Workflows</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<!-- Tags -->
|
||||||
<button mat-menu-item routerLink="/tags" *osPerms="'core.can_manage_tags'">
|
<button mat-menu-item routerLink="/tags" *osPerms="'core.can_manage_tags'">
|
||||||
<mat-icon>local_offer</mat-icon>
|
<mat-icon>local_offer</mat-icon>
|
||||||
<span translate>Tags</span>
|
<span translate>Tags</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<mat-divider></mat-divider>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Export -->
|
||||||
<button mat-menu-item *ngIf="selectedView === 'list'" (click)="openExportDialog()">
|
<button mat-menu-item *ngIf="selectedView === 'list'" (click)="openExportDialog()">
|
||||||
<mat-icon>archive</mat-icon>
|
<mat-icon>archive</mat-icon>
|
||||||
<span translate>Export</span>
|
<span translate>Export</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<!-- Import -->
|
||||||
<div *ngIf="perms.isAllowed('manage')">
|
<div *ngIf="perms.isAllowed('manage')">
|
||||||
<button mat-menu-item routerLink="import">
|
<button mat-menu-item routerLink="import">
|
||||||
<mat-icon>cloud_upload</mat-icon>
|
<mat-icon>cloud_upload</mat-icon>
|
||||||
|
Loading…
Reference in New Issue
Block a user