We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5018daa commit acb052aCopy full SHA for acb052a
client/src/app/dashboard/table-all/table-all.component.ts
@@ -77,13 +77,15 @@ export class TableAllComponent implements OnInit {
77
console.log('data', this.dataSource.data);
78
79
} else {
80
- this.apiService.deleteInstance(id).subscribe((deleteResult: HttpEvent<number>) => {
81
- console.log('result', deleteResult);
82
- }, err => {
83
- console.log('error delete Instance');
84
- });
85
- this.removeAt(i);
86
- }
+ if (result !== 'Cancle') {
+ this.apiService.deleteInstance(id).subscribe((deleteResult: HttpEvent<number>) => {
+ console.log('result', deleteResult);
+ }, err => {
+ console.log('error delete Instance');
+ });
+ this.removeAt(i);
87
+ }
88
89
this.dialogResult = result;
90
});
91
}
0 commit comments