mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[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:
committed by
Denys Vuika
parent
8d28838de4
commit
f44b3629e9
@@ -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>
|
Reference in New Issue
Block a user