🐛 dismiss update notification only after clicking close (#854)

Closes #764

Dismiss the update notification only after clicking "close" button
This commit is contained in:
Matiss Janis Aboltins
2023-04-04 21:18:12 +01:00
committed by GitHub
parent e23f9d822b
commit 61f1802840
2 changed files with 11 additions and 3 deletions

View File

@@ -15,9 +15,6 @@ export default async function checkForUpdateNotification(
return;
}
await savePrefs({
'flags.updateNotificationShownForVersion': latestVersion,
});
addNotification({
type: 'message',
title: 'A new version of Actual is available!',
@@ -30,5 +27,10 @@ export default async function checkForUpdateNotification(
window.open('https://actualbudget.github.io/docs/Release-Notes');
},
},
onClose: async () => {
await savePrefs({
'flags.updateNotificationShownForVersion': latestVersion,
});
},
});
}

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [MatissJanis]
---
Dismiss the update notification only after clicking the close button