notifications: rename alert to pin and unpin
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user