Skip to content

Commit

Permalink
fix: updated notification creation method
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Oct 4, 2024
1 parent 3cb0439 commit 1035c30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/controller/units/CancelUpdateModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function abortUpdate() {
await abortScheduledUpgradeUnitImage(_unit.value)
await unitsStore.getUnitInfo(_unit.value.id)
await unitsStore.getUnits()
notificationStore.addNotification({
notificationStore.createNotification({
kind: 'success',
id: 'abort-scheduled-update',
title: t('controller.units.scheduled_image_update_aborted', {
Expand Down
2 changes: 1 addition & 1 deletion src/components/controller/units/ScheduleUpdateDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async function updateUnit() {
notification.id = 'schedule-unit-update'
notification.title = t('controller.units.scheduled_image_update_success')
}
notificationsStore.addNotification(notification)
notificationsStore.createNotification(notification)
emit('close')
} catch (error: any) {
sendingError.value = error
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async function updateUnitPackages() {
await upgradePackages(_unit.value)
await unitsStore.getUnitInfo(_unit.value.id)
await unitsStore.getUnits()
notificationStore.addNotification({
notificationStore.createNotification({
kind: 'success',
id: 'update-packages',
title: t('controller.units.packages_upgrade_in_progress', {
Expand Down

0 comments on commit 1035c30

Please sign in to comment.