When the session expired, automatically refresh the page with the intended desitination without the alert
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 27s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m32s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m32s
Create Docker Image / Final Docker Image Manifest (push) Successful in 8s
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 27s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m32s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m32s
Create Docker Image / Final Docker Image Manifest (push) Successful in 8s
This commit is contained in:
parent
97d9311dff
commit
462d888c03
6
public/js/custom.js
vendored
6
public/js/custom.js
vendored
@ -36,11 +36,11 @@ function getNode(item) {
|
||||
case 404:
|
||||
$('.main-content').empty().append(e.responseText);
|
||||
break;
|
||||
case 409:
|
||||
case 409: // Not in root
|
||||
location.replace('/#'+item);
|
||||
break;
|
||||
case 419:
|
||||
alert('Session has expired, reloading the page and try again...');
|
||||
case 419: // Session Expired
|
||||
location.replace('/#'+item);
|
||||
location.reload();
|
||||
break;
|
||||
case 500:
|
||||
|
Loading…
x
Reference in New Issue
Block a user