Revision 25b225a5 ui/static/snf/js/ui/web/ui_networks_view.js
b/ui/static/snf/js/ui/web/ui_networks_view.js | ||
---|---|---|
650 | 650 |
var el = $(this); |
651 | 651 |
el.closest(".confirm_single").hide(); |
652 | 652 |
el.parent().parent().find(".selected").removeClass("selected"); |
653 |
self.network.remove(function(){ |
|
653 |
self.network.remove(function() { |
|
654 |
self.network.set({state:"DESTROY"}); |
|
654 | 655 |
el.closest(".confirm_single").removeClass("in-progress"); |
655 | 656 |
}); |
656 | 657 |
el.closest(".confirm_single").addClass("in-progress"); |
... | ... | |
834 | 835 |
this.$(".spinner").hide(); |
835 | 836 |
this.$(".network-indicator").removeClass("in-progress"); |
836 | 837 |
} |
838 |
|
|
839 |
if (this.network.get("state") == "DESTROY") { |
|
840 |
this.$(".spinner").show(); |
|
841 |
this.$(".state").addClass("destroying-state"); |
|
842 |
} |
|
837 | 843 |
} |
838 | 844 |
}) |
839 | 845 |
|
Also available in: Unified diff