SystemUpdate: check if notif

This commit is contained in:
axolotle 2022-12-04 15:03:32 +01:00
parent 81cdebde45
commit ea07e19e63

View file

@ -165,7 +165,9 @@ export default {
const apps = appList.map((app) => ({ const apps = appList.map((app) => ({
id: app.id, id: app.id,
name: app.name, name: app.name,
notif: this.formatAppNotifs(app.notifications.pre_upgrade) notif: app.notifications.pre_upgrade
? this.formatAppNotifs(app.notifications.pre_upgrade)
: ''
})) }))
this.preUpgrade = { apps, hasNotifs: apps.some((app) => app.notif) } this.preUpgrade = { apps, hasNotifs: apps.some((app) => app.notif) }
this.$bvModal.show('apps-pre-upgrade') this.$bvModal.show('apps-pre-upgrade')