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:
Rupenieks
2020-08-25 20:37:24 +02:00
committed by GitHub
parent abdda858eb
commit 44f7b7a9c2
8 changed files with 57 additions and 7 deletions

View File

@@ -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 {