Commit 9e41cdd4 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Resize overlay initialization fix

parent aefd1eff
......@@ -317,6 +317,7 @@
extra_quotas: extra_quota
});
this.selected_flavor = this.vm.get_flavor();
this.handle_flavor_select(this.selected_flavor);
this.flavors_view.bind("flavor:select", this.handle_flavor_select)
this.submit.addClass("disabled");
views.VmResizeView.__super__.show.apply(this);
......@@ -383,7 +384,7 @@
}
this.submit.addClass("disabled");
} else {
if (this.selected_flavor) {
if (this.selected_flavor && this.selected_flavor.id != this.vm.get_flavor().id) {
this.submit.removeClass("disabled");
}
this.shutdown.hide();
......
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