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

@@ -37,11 +37,13 @@ import { showMessage } from '@/components/mixins/showMessage';
import { IWorkflowShortResponse } from '@/Interface';
import mixins from 'vue-typed-mixins';
import titleChange from './mixins/titleChange';
export default mixins(
genericHelpers,
restApi,
showMessage,
titleChange
).extend({
name: 'WorkflowOpen',
props: [
@@ -89,6 +91,7 @@ export default mixins(
},
openWorkflow (data: IWorkflowShortResponse, column: any) { // tslint:disable-line:no-any
if (column.label !== 'Active') {
titleChange.set(data.name, 'IDLE');
this.$emit('openWorkflow', data.id);
}
},