From 3741b6e9d14e3888d948f264f8675beb11268984 Mon Sep 17 00:00:00 2001 From: eleven Date: Sat, 25 May 2019 14:59:28 +0800 Subject: [PATCH 1/3] Adjust variable declaration format --- web/vtctld2/src/app/workflows/node.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/web/vtctld2/src/app/workflows/node.ts b/web/vtctld2/src/app/workflows/node.ts index 475f86f347d..b1f5089c6e4 100644 --- a/web/vtctld2/src/app/workflows/node.ts +++ b/web/vtctld2/src/app/workflows/node.ts @@ -12,7 +12,7 @@ export const enum ActionStyle { TRIGGERED, } -/* +/* Object for any action buttons you want the UI to display to the user. Default behavior should be that Action.message appears as a tooltip. */ @@ -71,14 +71,14 @@ export class Node { public name: string; public path: string; // Path to element Ex, “GrandparentID/ParentId/ID”. public children: Node[]; - public lastChanged= 0; // Time last changed in seconds. - public progress= 0; // Should be an int from 0-100 for percentage - public progressMsg= ''; // Ex. “34/256” “25%” “calculating” - public state= State.NOT_STARTED; - public display= Display.NONE; - public message= ''; // Instructions for user - public log= ''; // Log from command - public disabled= false; // Use for blocking further actions + public lastChanged = 0; // Time last changed in seconds. + public progress = 0; // Should be an int from 0-100 for percentage + public progressMsg = ''; // Ex. “34/256” “25%” “calculating” + public state = State.NOT_STARTED; + public display = Display.NONE; + public message = ''; // Instructions for user + public log = ''; // Log from command + public disabled = false; // Use for blocking further actions public actions: Action[]; constructor(name: string, path: string, children: any) { From 3d3b86a2c4b13c1da2169c5d6e5d55366c5d53e4 Mon Sep 17 00:00:00 2001 From: eleven Date: Sat, 25 May 2019 15:22:00 +0800 Subject: [PATCH 2/3] need space on the left of = --- web/vtctld2/src/app/shared/dialog/dialog-settings.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/vtctld2/src/app/shared/dialog/dialog-settings.ts b/web/vtctld2/src/app/shared/dialog/dialog-settings.ts index 2d6fd9abc1d..cca1885de30 100644 --- a/web/vtctld2/src/app/shared/dialog/dialog-settings.ts +++ b/web/vtctld2/src/app/shared/dialog/dialog-settings.ts @@ -11,11 +11,11 @@ export class DialogSettings { public respText: string; public errMsg: string; public logText: string; - public open= false; - public dialogForm= true; - public dialogLog= false; - public pending= false; - public onCloseFunction= undefined; + public open = false; + public dialogForm = true; + public dialogLog = false; + public pending = false; + public onCloseFunction = undefined; constructor(actionWord = '', dialogTitle = '', dialogSubtitle = '', errMsg = '') { this.actionWord = actionWord; From 55ce6a1bb8b08c0ec93fe5f5d57ea1acfa97112e Mon Sep 17 00:00:00 2001 From: eleven Date: Sat, 25 May 2019 15:27:12 +0800 Subject: [PATCH 3/3] should use ' to replace of " --- web/vtctld2/src/app/workflows/workflow-list.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/vtctld2/src/app/workflows/workflow-list.component.ts b/web/vtctld2/src/app/workflows/workflow-list.component.ts index 376b63801f2..3a7dc7b0e64 100644 --- a/web/vtctld2/src/app/workflows/workflow-list.component.ts +++ b/web/vtctld2/src/app/workflows/workflow-list.component.ts @@ -254,7 +254,7 @@ export class WorkflowListComponent implements OnDestroy, OnInit { for (let i=0; i