Skip to content
Snippets Groups Projects
Commit 7b69a4d4 authored by Stavros Sachtouris's avatar Stavros Sachtouris Committed by Giorgos Korfiatis
Browse files

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

parent 7a3ab683
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment