notifications: rename ALERT_ to TYPE_

This commit is contained in:
Girish Ramakrishnan
2024-12-11 15:18:00 +01:00
parent 6141db8f34
commit ead419003b
10 changed files with 67 additions and 67 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.ALERT_BOX_UPDATE, `Cloudron v${updateInfo.version} is available`, message, { persist: false });
await notifications.alert(notifications.TYPE_BOX_UPDATE, `Cloudron v${updateInfo.version} is available`, message, { persist: false });
state.box = updateInfo;
setUpdateInfo(state);