MOBILE-3068 notifications: Fix view page opened in phantom tab
parent
4f08571d39
commit
15ecd70e18
|
@ -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