Commit d497e4ed by Nattana Chaiyamat

Competency : การลบประเภท

parent e7b670b8
......@@ -244,16 +244,14 @@ export class CompetencyTopic {
next: response => {
if (response.success) {
this.showAlert(response.message, 'success')
this.getCompetencytypeList()
this.getCompetencytopicList()
} else {
this.showAlert(response.message, 'error')
this.dataLoading = false
this.cdr.detectChanges()
}
this.getCompetencytypeList()
this.getCompetencytopicList()
this.cdr.detectChanges()
}, error: error => {
this.getCompetencytypeList()
this.getCompetencytopicList()
this.showAlert(error.message, 'error')
this.dataLoading = false
this.cdr.detectChanges()
......
......@@ -163,12 +163,11 @@ export class TypeRegistration {
next: response => {
if (response.success) {
this.showAlert(response.message, 'success');
this.getCompetencytypeList();
} else {
this.showAlert(response.message, 'error');
this.dataLoading = false
this.cdr.detectChanges()
}
this.getCompetencytypeList();
this.cdr.detectChanges()
},
error: error => {
this.showAlert(error.message, 'error')
......
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