MOBILE-3068 notifications: Fix view page opened in phantom tab

main
Dani Palou 2019-08-23 12:34:01 +02:00
parent 4f08571d39
commit 15ecd70e18
2 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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>