Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 7b6e293

Browse files
cppwfsghillert
authored andcommitted
refreshes task definitions on delete
resolves #531
1 parent 582a9e3 commit 7b6e293

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

ui/src/app/tasks/task-definitions/task-definitions.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export class TaskDefinitionsComponent implements OnInit {
107107
this.cancel();
108108
this.toastyService.success('Successfully destroyed task definition "'
109109
+ taskDefinition.name + '"');
110+
this.loadTaskDefinitions();
110111
},
111112
error => {
112113
this.toastyService.error(error);

ui/src/app/tasks/tasks.service.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,6 @@ export class TasksService {
197197
const headers = new Headers({'Content-Type': 'application/json'});
198198
const options = new RequestOptions({headers: headers});
199199
return this.http.delete('/tasks/definitions/' + name, options)
200-
.map(data => {
201-
this.taskDefinitions.items = this.taskDefinitions.items.filter(item => item.name !== name);
202-
})
203200
.catch(this.errorHandler.handleError);
204201
}
205202

0 commit comments

Comments
 (0)