Skip to content

Commit

Permalink
fix: Add work with readonly property notReadonlyAndEnableUpdate, as o…
Browse files Browse the repository at this point in the history
…n grid for web (#29)
  • Loading branch information
EndyKaufman committed Mar 7, 2019
1 parent 5c3025e commit bd9fddb
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -32,15 +32,15 @@
<ion-item-option
color="primary"
(click)="ctx.slidingItem.close();onUpdate(ctx.item)"
*ngIf="updateLink===undefined">
*ngIf="(notReadonlyAndEnableUpdate$ | async) && updateLink===undefined">
<ion-icon
slot="icon-only"
name="create">
</ion-icon>
</ion-item-option>
<ion-item-option
color="primary"
*ngIf="updateLink!==undefined"
*ngIf="(notReadonlyAndEnableUpdate$ | async) && updateLink!==undefined"
(click)="ctx.slidingItem.close()"
[routerLink]="[updateLink+'/'+ctx.item.id]">
<ion-icon
Expand All @@ -51,15 +51,15 @@
<ion-item-option
color="danger"
(click)="ctx.slidingItem.close();onDelete(ctx.item)"
*ngIf="deleteLink===undefined">
*ngIf="(notReadonlyAndEnableDelete$ | async) && deleteLink===undefined">
<ion-icon
slot="icon-only"
name="trash">
</ion-icon>
</ion-item-option>
<ion-item-option
color="danger"
*ngIf="deleteLink!==undefined"
*ngIf="(notReadonlyAndEnableDelete$ | async) && deleteLink!==undefined"
(click)="ctx.slidingItem.close()"
[routerLink]="[deleteLink+'/'+ctx.item.id]">
<ion-icon
Expand Down

0 comments on commit bd9fddb

Please sign in to comment.