Skip to content
Snippets Groups Projects
Commit bc6df5a8 authored by Erwan Rouchet's avatar Erwan Rouchet Committed by Bastien Abadie
Browse files

Use process name in status notifications

parent 8d1ac497
No related branches found
No related tags found
1 merge request!1458Use process name in status notifications
......@@ -124,7 +124,7 @@ export default {
// Notify of workflow state changes
if (!('Notification' in window) || !oldValue || !newValue || oldValue.id !== newValue.id || !newValue.state || oldValue.state === newValue.state) return
const n = new Notification(
`${this.processMode} ${this.process.id}`,
`${this.processMode} ${this.process.name?.trim() || this.process.id}`,
{ body: 'Process status updated to ' + this.processStatus }
)
setTimeout(n.close.bind(n), 5000)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment