1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

improve web notification format

This commit is contained in:
Oliver Giles 2018-01-05 10:50:50 +02:00
parent d7351c0c70
commit 6e4c89bd73

View File

@ -533,7 +533,9 @@ new Vue({
}, },
showNotify(msg, data) { showNotify(msg, data) {
if(this.notify && msg === 'job_completed') if(this.notify && msg === 'job_completed')
new Notification(data.name + ' ' + '#' + data.number +' completed'); new Notification('Job ' + data.result, {
body: data.name + ' ' + '#' + data.number + ': ' + data.result
});
} }
}, },
watch: { watch: {