MOBILE-4653 notifications: Fix opening notification action

The siteId parameter is mandatory for actions, but in notiifcations it wasn't supplied. This worked fine before, but after the refactor done in MOBILE-4028 it no longer worked
main
Dani Palou 2024-12-11 08:51:26 +01:00
parent 99e1223616
commit bd41c5d064
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@
<div collapsible-footer appearOnBottom *ngIf="loaded && actions && actions.length > 0" slot="fixed"> <div collapsible-footer appearOnBottom *ngIf="loaded && actions && actions.length > 0" slot="fixed">
<div class="list-item-limited-width adaptable-buttons-row"> <div class="list-item-limited-width adaptable-buttons-row">
<ion-button expand="block" (click)="action.action()" *ngFor="let action of actions"> <ion-button expand="block" (click)="action.action(action.sites[0])" *ngFor="let action of actions">
<ion-icon slot="start" name="{{action.icon}}" aria-hidden="true" /> <ion-icon slot="start" name="{{action.icon}}" aria-hidden="true" />
{{ action.message | translate }} {{ action.message | translate }}
</ion-button> </ion-button>