mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
✨ Dynamic title based on workflow execution (#865)
* ✅ Added title changes based on workflow execution * ⚡ Title changes on workflow open, reset on workflow delete, fixed not showing when page refreshed * ⚡ Title icons
This commit is contained in:
@@ -157,6 +157,7 @@ import {
|
||||
IWorkflowDataUpdate,
|
||||
XYPositon,
|
||||
} from '../Interface';
|
||||
import titleChange from '../components/mixins/titleChange';
|
||||
|
||||
export default mixins(
|
||||
copyPaste,
|
||||
@@ -167,6 +168,7 @@ export default mixins(
|
||||
showMessage,
|
||||
workflowHelpers,
|
||||
workflowRun,
|
||||
titleChange
|
||||
)
|
||||
.extend({
|
||||
name: 'NodeView',
|
||||
@@ -1324,6 +1326,8 @@ export default mixins(
|
||||
}
|
||||
|
||||
if (workflowId !== null) {
|
||||
let workflow = await this.restApi().getWorkflow(workflowId);
|
||||
titleChange.set(workflow.name, 'IDLE');
|
||||
// Open existing workflow
|
||||
await this.openWorkflow(workflowId);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user