Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Usman
PERFORMA_REPLICA
Commits
5acafeab
Commit
5acafeab
authored
Nov 26, 2019
by
Ali Arshad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CR fix for messages duplicate code.
Fixed sorting issue.
parent
30b6d65e
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
edit-workflow-template.component.html
...t-workflow-template/edit-workflow-template.component.html
+0
-0
edit-workflow-template.component.ts
...dit-workflow-template/edit-workflow-template.component.ts
+5
-4
constants.ts
frontend/angular/src/app/constants.ts
+1
-0
No files found.
frontend/angular/src/app/components/edit-workflow-template/edit-workflow-template.component.html
View file @
5acafeab
This diff is collapsed.
Click to expand it.
frontend/angular/src/app/components/edit-workflow-template/edit-workflow-template.component.ts
View file @
5acafeab
...
...
@@ -164,12 +164,14 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
}
reOrderStages
():
void
{
this
.
workflow
.
WorkFlowStages
=
this
.
utilsService
.
sort
(
this
.
workflow
.
WorkFlowStages
,
[
'SortOrder'
],
[
-
1
]);
this
.
workflow
.
WorkFlowStages
=
this
.
utilsService
.
sort
(
this
.
workflow
.
WorkFlowStages
,
[
'SortOrder'
],
[
1
]);
this
.
filterStages
();
}
reOrderSteps
():
void
{
this
.
workflow
.
WorkFlowStages
=
this
.
utilsService
.
sort
(
this
.
workflow
.
WorkFlowStages
,
[
'SortOrder'
],
[
-
1
]);
this
.
workflow
.
WorkFlowStages
.
forEach
(
stage
=>
{
stage
.
Steps
=
this
.
utilsService
.
sort
(
stage
.
Steps
,
[
'SortOrder'
],
[
1
]);
});
}
isGeneric
(
stage
:
WorkflowStageModel
):
boolean
{
...
...
@@ -509,7 +511,6 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
this
.
utilsService
.
addObjsToJSONByObjectID
(
this
.
updatedObjs
,
stage
.
WorkFlowMessages
);
this
.
utilsService
.
addObjsToJSONByObjectID
(
this
.
updatedObjs
,
stage
.
Steps
);
});
this
.
reOrderStages
();
...
...
@@ -531,7 +532,7 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
saveWorkflowTemplate
(
saveCopy
=
false
):
void
{
this
.
utilsService
.
clearErrorMessages
();
const
service
=
`svc/
${
saveCopy
?
SERVICES
.
SAVE_
MESSAGE
_AS_COPY
:
SERVICES
.
SAVE
}
`
;
const
service
=
`svc/
${
saveCopy
?
SERVICES
.
SAVE_
WORKFLOW
_AS_COPY
:
SERVICES
.
SAVE
}
`
;
if
(
this
.
form
.
invalid
)
{
this
.
utilsService
.
showAllErrorMessages
();
...
...
frontend/angular/src/app/constants.ts
View file @
5acafeab
...
...
@@ -14,6 +14,7 @@ export const SERVICES = {
MESSAGE_TEMPLATES
:
'MessageTemplates'
,
WORKFLOW_TEMPLATES
:
'WorkFlowTemplates'
,
SAVE_MESSAGE_AS_COPY
:
'SaveMessageAsCopy'
,
SAVE_WORKFLOW_AS_COPY
:
'SaveWorkflowAsCopy'
,
SAVE
:
'Save'
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment