import Vue from 'vue' ; import { WorkflowTitleStatus , } from '../../Interface' ; export const titleChange = Vue . extend ( { methods : { param { string } workflow param { WorkflowTitleStatus } status $titleSet ( workflow , status ) { let icon = '⚠️' ; if ( status === 'EXECUTING' ) { icon = '🔄' ; } else if ( status === 'IDLE' ) { icon = '▶️' ; } window . document . title = `n8n - ${ icon } ${ workflow }` ; } , $titleReset ( ) { document . title = `n8n - Workflow Automation` ; } , } , } ) ;