notifications: rename alert to pin and unpin

This commit is contained in:
Girish Ramakrishnan
2024-12-11 15:47:41 +01:00
parent ead419003b
commit 746e694d7e
7 changed files with 112 additions and 71 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ async function checkBoxUpdates(options) {
const changelog = updateInfo.changelog.map((m) => `* ${m}\n`).join('');
const message = `Changelog:\n${changelog}\n\nGo to the Settings view to update.\n\n`;
await notifications.alert(notifications.TYPE_BOX_UPDATE, `Cloudron v${updateInfo.version} is available`, message, { persist: false });
await notifications.pin(notifications.TYPE_BOX_UPDATE, `Cloudron v${updateInfo.version} is available`, message, { context: updateInfo.version });
state.box = updateInfo;
setUpdateInfo(state);