diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-question-template/dynamic-question-template.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-question-template/dynamic-question-template.component.ts index 68c7c06..d2ee7a2 100644 --- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-question-template/dynamic-question-template.component.ts +++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/dynamic-form/dynamic-question-template/dynamic-question-template.component.ts @@ -490,7 +490,7 @@ export class DynamicQuestionTemplateComponent implements OnInit { let inserted_control_obj=form_control_obj // inserted_control_obj.questions.sort() // inserted_control_obj.questions.reverse() - console.log("check ddddddddddd",inserted_control_obj.questions.reverse(),inserted_control_obj.questions) + console.log("check ddddddddddd",inserted_control_obj.questions) inserted_control_obj.questions.forEach((val,index)=>{ if(val.hasOwnProperty('is_repeatable') && val.is_repeatable == '1') { if(options == 1) { @@ -506,7 +506,7 @@ export class DynamicQuestionTemplateComponent implements OnInit { this.whole_json.splice(question_index_after+1,0,val); val.question.forEach(group_val=>{ control_names[group_val.question_key] = '' - console.log("check ffffff",inserted_control_obj.questions.reverse(),inserted_control_obj.questions,group_val) + // console.log("check ffffff",inserted_control_obj.questions.reverse(),inserted_control_obj.questions,group_val) this.addOrRemoveControl(group_val,ques_control,question_index_after,options,val) }) const question_temp:any = JSON.parse(JSON.stringify(val.question)); @@ -522,7 +522,7 @@ export class DynamicQuestionTemplateComponent implements OnInit { // let childControl: any = this.formGroupN.get(val.group_key) as FormArray val.question.forEach(group_val=>{ // control_names[group_val.question_key] = '' - console.log("check ffffff",inserted_control_obj.questions.reverse(),inserted_control_obj.questions,group_val) + // console.log("check ffffff",inserted_control_obj.questions.reverse(),inserted_control_obj.questions,group_val) this.addOrRemoveControl(group_val,ques_control,question_index_after,options,val) }) } diff --git a/ng6-seed/src/app/shared/loaderService/loader.service.ts b/ng6-seed/src/app/shared/loaderService/loader.service.ts index cd47194..1eb301c 100644 --- a/ng6-seed/src/app/shared/loaderService/loader.service.ts +++ b/ng6-seed/src/app/shared/loaderService/loader.service.ts @@ -20,6 +20,7 @@ export class LoaderService { this.loaderSubject.next({ show: false }); } showMatSpinnerDialog(message ?:String) { + this.closeMatSpinnerDialog(); this.spinnerdialogRef = this.dialog.open(ProgressSpineerDialogComponent, { data:message, panelClass: 'transparent',