Handle when a SomethingResource fails, show Unknown Error
This commit is contained in:
parent
43a659ea80
commit
1c4a84dee6
1 changed files with 4 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
|||
#loading-error.text-center
|
||||
if jqxhr.status === 401
|
||||
if !jqxhr
|
||||
h1(data-i18n="loading_error.unknown")
|
||||
|
||||
else if jqxhr.status === 401
|
||||
h1
|
||||
span.spr 401:
|
||||
span(data-i18n="loading_error.login_required")
|
||||
|
|
Reference in a new issue