Files
alfresco-content-app/src/app/components/shared/toggle-shared/toggle-shared.component.html
2018-12-10 10:24:56 +00:00

17 lines
474 B
HTML

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