commit
023a66e24b
|
@ -1,5 +1,5 @@
|
|||
<core-navbar-buttons end>
|
||||
<button *ngIf="canDeleteNotes" item-end ion-button icon-only clear (click)="toggleDelete($event)" [attr.aria-label]="'core.delete' | translate">
|
||||
<button [hidden]="!canDeleteNotes" item-end ion-button icon-only clear (click)="toggleDelete($event)" [attr.aria-label]="'core.delete' | translate">
|
||||
<ion-icon name="create" ios="md-create"></ion-icon>
|
||||
</button>
|
||||
<core-context-menu>
|
||||
|
|
|
@ -31,7 +31,8 @@ export class AddonNotificationsActionsComponent implements OnInit {
|
|||
|
||||
actions: CoreContentLinksAction[] = [];
|
||||
|
||||
constructor(private contentLinksDelegate: CoreContentLinksDelegate, private sitesProvider: CoreSitesProvider) {}
|
||||
constructor(private contentLinksDelegate: CoreContentLinksDelegate, private sitesProvider: CoreSitesProvider,
|
||||
public navCtrl: NavController) {}
|
||||
|
||||
/**
|
||||
* Component being initialized.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<ion-row *ngIf="actions && actions.length > 0" justify-content-around>
|
||||
<ion-col *ngFor="let action of actions">
|
||||
<button ion-button icon-left clear small block (click)="action.action()">
|
||||
<button ion-button icon-left clear small block (click)="action.action(undefined, navCtrl)">
|
||||
<ion-icon name="{{action.icon}}"></ion-icon>
|
||||
{{ action.message | translate }}
|
||||
</button>
|
||||
|
|
Loading…
Reference in New Issue