Files
alfresco-content-app/src/app/components/common/toggle-shared/toggle-shared.component.html
Denys Vuika 36043d1473 [ACA-2182] ADF 3.3.0 alpha (#1126)
* upgrade to latest adf 3.0.0 alpha

* use ADF share dialog

* [ACA-2069] make sure toggles have the right color

* raise error popups for shared links

* update test

* use date only for sharing

* [ACA-2069] small improvement - make sure toggles have the right color

* remove old share dialog

* move toggle-shared component to common module
2019-06-14 12:59:09 +01:00

17 lines
471 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>