fix: [UI] Correct message for fail callback

pull/8613/head
Jakub Onderka 2022-09-30 13:04:13 +02:00
parent 407291f0e7
commit 390010bf5b
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ function rgb2hex(rgb) {
function xhrFailCallback(xhr) {
if (xhr.status === 0) {
showMessage('fail', 'Something went wrong server is not responding.');
} if (xhr.status === 401) {
} else if (xhr.status === 401) {
showMessage('fail', 'Unauthorized. Please reload page to log again.');
} else if (xhr.status === 403 || xhr.status === 405) {
showMessage('fail', 'Not allowed.');