Commit 805e639d by GD-A-150752

Bug-Fix S52544923 # Sprint 3 Issues # Edit Workflow Template || Count is…

Bug-Fix S52544923 # Sprint 3 Issues # Edit Workflow Template || Count is defaulted to one instead of zero
parent 894abd73
...@@ -213,7 +213,8 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn ...@@ -213,7 +213,8 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
} }
getStageHeader(stage: WorkflowStageModel): string { getStageHeader(stage: WorkflowStageModel): string {
return `${stage.Name} (${stage.WorkFlowMessages ? stage.WorkFlowMessages.length : 0})`; return `${stage.Name} (${stage.WorkFlowMessages ?
stage.WorkFlowMessages.filter(msg => msg.Delay && msg.MessageTemplate).length : 0})`;
} }
showLabel(id: string): boolean { showLabel(id: string): boolean {
...@@ -534,7 +535,7 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn ...@@ -534,7 +535,7 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
this.utilsService.clearErrorMessages(); this.utilsService.clearErrorMessages();
const assoc = [ASSOCS.WORKFLOW_STAGE, [ASSOCS.WORKFLOW_STAGE, ASSOCS.WORKFLOW_MESSAGE, ASSOCS.MESSAGE_TEMPLATE].join('.'), const assoc = [ASSOCS.WORKFLOW_STAGE, [ASSOCS.WORKFLOW_STAGE, ASSOCS.WORKFLOW_MESSAGE, ASSOCS.MESSAGE_TEMPLATE].join('.'),
[ASSOCS.WORKFLOW_STAGE, ASSOCS.WORKFLOW_MESSAGE].join('.'), [ASSOCS.WORKFLOW_STAGE, ASSOCS.WORKFLOW_STEP].join('.')]; [ASSOCS.WORKFLOW_STAGE, ASSOCS.WORKFLOW_MESSAGE].join('.'), [ASSOCS.WORKFLOW_STAGE, ASSOCS.WORKFLOW_STEP].join('.')];
this.subscriptions.push(this.editWorkflowTemplateService.getWorkflowTemplateByID(id, assoc) this.subscriptions.push(this.editWorkflowTemplateService.getWorkflowTemplateByID(id, assoc)
.subscribe( .subscribe(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment