Commit c857edfc authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

MainMenu: workspace disconnect only available when connected

parent 54ece8a7
......@@ -76,7 +76,7 @@ define([
computed: {
items: function() {
var ret = {};
if (~["connecting","connected"].indexOf(this.data.state)) {
if ("connected" === this.data.state) {
ret.disconnect = wsSubItemDisconnect;
}
// state reconstruction question
......
Supports Markdown
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