[frontend] If Hue is down, infinite loop on non page refresh when doing an action
@@ -795,8 +795,13 @@ ${ smart_unicode(login_modal(request).content) | n,unicode }
},
error: function (xhr) {
console.error('Route loading problem', xhr);
+ if (app !== '500'){
self.loadApp('500');
}
+ else {
+ $.jHueNotify.error("${ _('It looks like you are offline or an unknown error happened. Please refresh the page.') }")
+ }
+ }
});
} else {
self.isLoadingEmbeddable(false);
