[ACA-2064] fix share icon

This commit is contained in:
Denys Vuika
2018-12-10 10:24:56 +00:00
parent 99a8192b36
commit 668acafa3d

View File

@@ -1,12 +1,16 @@
<ng-container *ngIf="selection$ | async as selection"> <ng-container *ngIf="(selection$ | async) as selection">
<button mat-menu-item data-automation-id="share-action-button" (click)="editSharedNode(selection)"> <button
<mat-icon>share</mat-icon> mat-menu-item
<ng-container *ngIf="isShared(selection); else not_shared"> data-automation-id="share-action-button"
<span>{{ 'APP.ACTIONS.SHARE_EDIT' | translate }}</span> (click)="editSharedNode(selection)"
</ng-container> >
</button> <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>
<ng-template #not_shared> <ng-template #not_shared>
<span>{{ 'APP.ACTIONS.SHARE' | translate }}</span> <span>{{ 'APP.ACTIONS.SHARE' | translate }}</span>
</ng-template> </ng-template>