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:
parent
d7351c0c70
commit
6e4c89bd73
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user