Files
alfresco-content-app/src/app/components/shared/toggle-shared/toggle-shared.component.html
Cilibiu Bogdan f44b3629e9 [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
2018-10-10 18:31:13 +01:00

12 lines
488 B
HTML

<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>