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
6aff3293
Commit
6aff3293
authored
Nov 26, 2019
by
Ali Arshad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Data missing fix
parent
7ffe69af
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
12 deletions
+22
-12
edit-workflow-template.component.html
...t-workflow-template/edit-workflow-template.component.html
+4
-8
edit-workflow-template.component.ts
...dit-workflow-template/edit-workflow-template.component.ts
+18
-4
No files found.
frontend/angular/src/app/components/admin-portal/edit-workflow-template/edit-workflow-template.component.html
View file @
6aff3293
...
@@ -69,30 +69,26 @@
...
@@ -69,30 +69,26 @@
</div>
</div>
<div
class=
"form-group ui-g-12"
>
<div
class=
"form-group ui-g-12"
>
<div
class=
"ui-g"
>
<div
class=
"ui-g"
>
<div
class=
"ui-g-
6
"
>
<div
class=
"ui-g-
3
"
>
<label
for=
"CaptureCV"
>
Capture CV
</label>
<label
for=
"CaptureCV"
>
Capture CV
</label>
<p-inputSwitch
[(
ngModel
)]="
workflow
.
CaptureCV
"
[
disabled
]="
showLoader
"
<p-inputSwitch
[(
ngModel
)]="
workflow
.
CaptureCV
"
[
disabled
]="
showLoader
"
name=
"CaptureCV"
id=
"CaptureCV"
>
name=
"CaptureCV"
id=
"CaptureCV"
>
</p-inputSwitch>
</p-inputSwitch>
</div>
</div>
<div
class=
"ui-g-
6
"
*
ngIf=
"workflow.CaptureCV"
>
<div
class=
"ui-g-
3
"
*
ngIf=
"workflow.CaptureCV"
>
<label
for=
"ThankYouSecondaryText"
>
Mandatory
</label>
<label
for=
"ThankYouSecondaryText"
>
Mandatory
</label>
<p-inputSwitch
[(
ngModel
)]="
workflow
.
IsCVMandatory
"
<p-inputSwitch
[(
ngModel
)]="
workflow
.
IsCVMandatory
"
[
disabled
]="
showLoader
"
[
disabled
]="
showLoader
"
name=
"IsCVMandatory"
id=
"IsCVMandatory"
>
name=
"IsCVMandatory"
id=
"IsCVMandatory"
>
</p-inputSwitch>
</p-inputSwitch>
</div>
</div>
</div>
<div
class=
"ui-g-3"
>
</div>
<div
class=
"form-group ui-g-12"
>
<div
class=
"ui-g"
>
<div
class=
"ui-g-6"
>
<label
for=
"CaptureCL"
>
Capture Cover Letter
</label>
<label
for=
"CaptureCL"
>
Capture Cover Letter
</label>
<p-inputSwitch
[(
ngModel
)]="
workflow
.
CaptureCL
"
[
disabled
]="
showLoader
"
<p-inputSwitch
[(
ngModel
)]="
workflow
.
CaptureCL
"
[
disabled
]="
showLoader
"
name=
"CaptureCL"
id=
"CaptureCL"
>
name=
"CaptureCL"
id=
"CaptureCL"
>
</p-inputSwitch>
</p-inputSwitch>
</div>
</div>
<div
class=
"ui-g-
6
"
*
ngIf=
"workflow.CaptureCL"
>
<div
class=
"ui-g-
3
"
*
ngIf=
"workflow.CaptureCL"
>
<label
for=
"IsCLMandatory"
>
Mandatory
</label>
<label
for=
"IsCLMandatory"
>
Mandatory
</label>
<p-inputSwitch
[(
ngModel
)]="
workflow
.
IsCLMandatory
"
<p-inputSwitch
[(
ngModel
)]="
workflow
.
IsCLMandatory
"
[
disabled
]="
showLoader
"
[
disabled
]="
showLoader
"
...
...
frontend/angular/src/app/components/admin-portal/edit-workflow-template/edit-workflow-template.component.ts
View file @
6aff3293
...
@@ -329,6 +329,7 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
...
@@ -329,6 +329,7 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
this
.
adminPortalLayoutService
.
getHiringTeamID
().
ObjectID
);
this
.
adminPortalLayoutService
.
getHiringTeamID
().
ObjectID
);
this
.
messageTemplates
=
[...
myTemplates
,
...
response
[
1
]];
this
.
messageTemplates
=
[...
myTemplates
,
...
response
[
1
]];
this
.
addNewOptionToMessageTemplate
();
this
.
addNewOptionToMessageTemplate
();
this
.
assignMessageTemplate
();
if
(
callback
)
{
if
(
callback
)
{
// called when a new message template is created
// called when a new message template is created
callback
();
callback
();
...
@@ -525,9 +526,6 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
...
@@ -525,9 +526,6 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
stage
.
WorkFlowMessages
.
forEach
(
msg
=>
{
stage
.
WorkFlowMessages
.
forEach
(
msg
=>
{
this
.
generateDelayString
(
msg
);
this
.
generateDelayString
(
msg
);
this
.
generateVarianceString
(
msg
);
this
.
generateVarianceString
(
msg
);
if
(
msg
.
MessageTemplate
&&
msg
.
MessageTemplate
.
ObjectID
)
{
msg
.
MessageTemplate
=
this
.
messageTemplates
.
find
(
elem
=>
elem
.
ObjectID
===
msg
.
MessageTemplate
.
ObjectID
);
}
});
});
stage
.
Steps
.
forEach
(
step
=>
{
stage
.
Steps
.
forEach
(
step
=>
{
...
@@ -537,7 +535,7 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
...
@@ -537,7 +535,7 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
this
.
utilsService
.
addObjsToJSONByObjectID
(
this
.
updatedObjs
,
stage
.
WorkFlowMessages
);
this
.
utilsService
.
addObjsToJSONByObjectID
(
this
.
updatedObjs
,
stage
.
WorkFlowMessages
);
this
.
utilsService
.
addObjsToJSONByObjectID
(
this
.
updatedObjs
,
stage
.
Steps
);
this
.
utilsService
.
addObjsToJSONByObjectID
(
this
.
updatedObjs
,
stage
.
Steps
);
});
});
this
.
assignMessageTemplate
();
this
.
reOrderStages
();
this
.
reOrderStages
();
this
.
reOrderSteps
();
this
.
reOrderSteps
();
this
.
showLoader
=
false
;
this
.
showLoader
=
false
;
...
@@ -550,6 +548,22 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
...
@@ -550,6 +548,22 @@ export class EditWorkflowTemplateComponent extends BaseComponent implements OnIn
);
);
}
}
assignMessageTemplate
():
void
{
if
(
!
this
.
workflow
||
!
this
.
workflow
.
WorkFlowStages
||
!
this
.
messageTemplates
)
{
return
;
}
this
.
workflow
.
WorkFlowStages
.
forEach
(
stage
=>
{
stage
.
WorkFlowMessages
.
forEach
(
msg
=>
{
if
(
msg
.
MessageTemplate
&&
msg
.
MessageTemplate
.
ObjectID
)
{
msg
.
MessageTemplate
=
this
.
messageTemplates
.
find
(
elem
=>
elem
.
ObjectID
===
msg
.
MessageTemplate
.
ObjectID
);
}
});
});
}
getMessageClass
(
message
:
MessageTemplateModel
):
string
{
getMessageClass
(
message
:
MessageTemplateModel
):
string
{
return
message
.
TemplateType
?
`ui-icon-
${
message
.
TemplateType
.
Value
.
toLowerCase
()}
`
:
return
message
.
TemplateType
?
`ui-icon-
${
message
.
TemplateType
.
Value
.
toLowerCase
()}
`
:
'ui-icon-sms'
;
'ui-icon-sms'
;
...
...
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