mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
* use custom component action * adjust component. to render icon and menu action * pass action data * update selection after dialog closes * update mocks
33 lines
916 B
HTML
33 lines
916 B
HTML
<ng-container *ngIf="selection$ | async as selection">
|
|
<ng-container *ngIf="!data.iconButton">
|
|
<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-container *ngIf="data.iconButton">
|
|
<button
|
|
mat-icon-button
|
|
data-automation-id="share-action-button"
|
|
(click)="editSharedNode(selection)"
|
|
[attr.title]="
|
|
(isShared(selection) ? 'APP.ACTIONS.SHARE_EDIT' : 'APP.ACTIONS.SHARE')
|
|
| translate
|
|
"
|
|
>
|
|
<mat-icon>link</mat-icon>
|
|
</button>
|
|
</ng-container>
|
|
</ng-container>
|
|
|
|
<ng-template #not_shared>
|
|
<span>{{ 'APP.ACTIONS.SHARE' | translate }}</span>
|
|
</ng-template>
|