[ACA-92] Context Menu - share settings action (#699)

* context menu share settings action

* update cspell with 'qshare'

* share/edit share in viewer

* force change detection on children

* cleanup module declarations

* detection only for preview page

* assert properties

* cast to boolean
This commit is contained in:
Cilibiu Bogdan
2018-10-10 20:31:13 +03:00
committed by Denys Vuika
parent 8d28838de4
commit f44b3629e9
11 changed files with 262 additions and 30 deletions

View File

@@ -0,0 +1,12 @@
<ng-container *ngIf="selection$ | async as selection">
<button mat-menu-item data-automation-id="share-action-button" (click)="editSharedNode(selection)">
<mat-icon>share</mat-icon>
<ng-container *ngIf="isShared(selection); else not_shared">
<span>{{ 'APP.ACTIONS.CONTEXT_EDIT_SHARE' | translate }}</span>
</ng-container>
</button>
</ng-container>
<ng-template #not_shared>
<span>{{ 'APP.ACTIONS.SHARE' | translate }}</span>
</ng-template>