make notifications.alert take a title

the title is better when it's a bit more dynamic
This commit is contained in:
Girish Ramakrishnan
2019-03-07 14:49:38 -08:00
parent 4428c3d7d8
commit 66b02b58b6
3 changed files with 8 additions and 19 deletions

View File

@@ -154,9 +154,9 @@ function checkBoxUpdates(callback) {
const changelog = updateInfo.changelog.map((m) => `* ${m}\n`).join('');
const message = `Cloudron version ${updateInfo.version} is available. Click [here](/#/settings) to update.\n\nChangelog:\n${changelog}\n\n`;
const message = `Changelog:\n${changelog}\n\nClick [here](/#/settings) to update.\n\n`;
notifications.alert(notifications.ALERT_BOX_UPDATE, message, function (error) {
notifications.alert(notifications.ALERT_BOX_UPDATE, `Cloudron v${updateInfo.version} is available`, message, function (error) {
if (error) return callback(error);
state.box = updateInfo.version;