Commit 7b69a4d4 authored by Stavros Sachtouris's avatar Stavros Sachtouris Committed by Giorgos Korfiatis

GUI: Don't open Settings when decision box is open

parent 7a3ab683
......@@ -108,7 +108,9 @@ socket.onopen = function() {
socket.onmessage = function(e) {
var r = JSON.parse(e.data)
log_debug('RECV: ' + r['action']);
dont_open_settings = [STATUS['DIRECTORY ERROR'], STATUS['CONTAINER ERROR']];
if (globals.authenticated && r.code >= 200
&& (dont_open_settings.indexOf(r.code) == -1)
&& (r.code !== (globals.previous_status || 0))
&& (!globals.settings_are_open)) {
globals.open_settings = true;
......
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