Fairoj : SMC loader feedback issue resolved

This commit is contained in:
venbatechnologies@gmail.com 2021-02-06 18:19:56 +05:30
parent 7615c4df4f
commit 4fd9d66581
2 changed files with 4 additions and 3 deletions

View File

@ -490,7 +490,7 @@ export class DynamicQuestionTemplateComponent implements OnInit {
let inserted_control_obj=form_control_obj let inserted_control_obj=form_control_obj
// inserted_control_obj.questions.sort() // inserted_control_obj.questions.sort()
// inserted_control_obj.questions.reverse() // 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)=>{ inserted_control_obj.questions.forEach((val,index)=>{
if(val.hasOwnProperty('is_repeatable') && val.is_repeatable == '1') { if(val.hasOwnProperty('is_repeatable') && val.is_repeatable == '1') {
if(options == 1) { if(options == 1) {
@ -506,7 +506,7 @@ export class DynamicQuestionTemplateComponent implements OnInit {
this.whole_json.splice(question_index_after+1,0,val); this.whole_json.splice(question_index_after+1,0,val);
val.question.forEach(group_val=>{ val.question.forEach(group_val=>{
control_names[group_val.question_key] = '' 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) this.addOrRemoveControl(group_val,ques_control,question_index_after,options,val)
}) })
const question_temp:any = JSON.parse(JSON.stringify(val.question)); 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 // let childControl: any = this.formGroupN.get(val.group_key) as FormArray
val.question.forEach(group_val=>{ val.question.forEach(group_val=>{
// control_names[group_val.question_key] = '' // 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) this.addOrRemoveControl(group_val,ques_control,question_index_after,options,val)
}) })
} }

View File

@ -20,6 +20,7 @@ export class LoaderService {
this.loaderSubject.next(<LoaderState>{ show: false }); this.loaderSubject.next(<LoaderState>{ show: false });
} }
showMatSpinnerDialog(message ?:String) { showMatSpinnerDialog(message ?:String) {
this.closeMatSpinnerDialog();
this.spinnerdialogRef = this.dialog.open(ProgressSpineerDialogComponent, { this.spinnerdialogRef = this.dialog.open(ProgressSpineerDialogComponent, {
data:message, data:message,
panelClass: 'transparent', panelClass: 'transparent',