mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
Remove node from node list after deregristration
This commit is contained in:
parent
68bf19dcdb
commit
509820be45
@ -285,7 +285,7 @@ ItemBaseController = Ember.ArrayController.extend({
|
||||
});
|
||||
|
||||
App.NodesShowController = Ember.ObjectController.extend({
|
||||
needs: ["dc"],
|
||||
needs: ["dc", "nodes"],
|
||||
dc: Ember.computed.alias("controllers.dc"),
|
||||
|
||||
actions: {
|
||||
@ -306,6 +306,10 @@ App.NodesShowController = Ember.ObjectController.extend({
|
||||
'Node': node.Node
|
||||
})
|
||||
}).then(function(response) {
|
||||
var nodes = controller.get('controllers.nodes').get('nodes');
|
||||
controller.get('controllers.nodes').set('nodes', nodes.filter(function(n) {
|
||||
return n.Node !== node.Node;
|
||||
}));
|
||||
controller.transitionToRoute('nodes');
|
||||
}).fail(function(response) {
|
||||
controller.set('errorMessage', 'Received error while processing: ' + response.statusText);
|
||||
|
Loading…
x
Reference in New Issue
Block a user