From 6e4c89bd7319429fbf5d92ff7fa76707edaeab44 Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Fri, 5 Jan 2018 10:50:50 +0200 Subject: [PATCH] improve web notification format --- src/resources/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/resources/js/app.js b/src/resources/js/app.js index 0830bc0..76620fa 100644 --- a/src/resources/js/app.js +++ b/src/resources/js/app.js @@ -533,7 +533,9 @@ new Vue({ }, showNotify(msg, data) { 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: {