Commit d497e4ed by Nattana Chaiyamat

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

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