fix: modals not reacting after several uses

This commit is contained in:
Jovan Krunić
2022-09-23 10:56:57 +00:00
committed by Rainer Killinger
parent 848d2574c7
commit f39c29f10b
5 changed files with 9 additions and 41 deletions

View File

@@ -39,7 +39,6 @@ export class OffersInListComponent {
this.settingsProvider.getSetting('profile', 'group').then(group => {
this.price =
it[0].prices?.[(group.value as string).replace(/s$/, '') as never];
console.log(group.value);
});
}

View File

@@ -20,22 +20,7 @@
<stapps-data-list-item
[item]="dish"
[hideThumbnail]="true"
[id]="'show-dish-in-modal-' + i"
></stapps-data-list-item>
<ion-modal
*ngIf="openAsModal"
[trigger]="'show-dish-in-modal-' + i"
swipe-to-close="true"
[presentingElement]="routerOutlet.nativeEl"
class="modal-large"
>
<ng-template>
<stapps-data-detail-content
[item]="dish"
[showModalHeader]="true"
></stapps-data-detail-content>
</ng-template>
</ion-modal>
</ng-container>
</ion-list>
</div>