Merge pull request #2070 from dpalou/MOBILE-3068

Mobile 3068
main
Juan Leyva 2019-08-23 12:59:34 +01:00 committed by GitHub
commit 023a66e24b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<core-navbar-buttons end> <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> <ion-icon name="create" ios="md-create"></ion-icon>
</button> </button>
<core-context-menu> <core-context-menu>

View File

@ -31,7 +31,8 @@ export class AddonNotificationsActionsComponent implements OnInit {
actions: CoreContentLinksAction[] = []; actions: CoreContentLinksAction[] = [];
constructor(private contentLinksDelegate: CoreContentLinksDelegate, private sitesProvider: CoreSitesProvider) {} constructor(private contentLinksDelegate: CoreContentLinksDelegate, private sitesProvider: CoreSitesProvider,
public navCtrl: NavController) {}
/** /**
* Component being initialized. * Component being initialized.

View File

@ -1,6 +1,6 @@
<ion-row *ngIf="actions && actions.length > 0" justify-content-around> <ion-row *ngIf="actions && actions.length > 0" justify-content-around>
<ion-col *ngFor="let action of actions"> <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> <ion-icon name="{{action.icon}}"></ion-icon>
{{ action.message | translate }} {{ action.message | translate }}
</button> </button>