401 error alert
This commit is contained in:
@@ -45,7 +45,7 @@ class HttpManager {
|
||||
} else {
|
||||
console.error("Request error:", response);
|
||||
this.$timeout(function(){
|
||||
onerror(response)
|
||||
onerror(response, xmlhttp.status)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -429,7 +429,10 @@ class SyncManager {
|
||||
console.log("Caught sync success exception:", e);
|
||||
}
|
||||
|
||||
}.bind(this), function(response){
|
||||
}.bind(this), function(response, statusCode){
|
||||
if(statusCode == 401) {
|
||||
alert("Your session has expired. New changes will not be pulled in. Please sign out and sign back in to refresh your session.");
|
||||
}
|
||||
console.log("Sync error: ", response);
|
||||
var error = response ? response.error : {message: "Could not connect to server."};
|
||||
|
||||
|
||||
@@ -87,13 +87,12 @@ $footer-height: 32px;
|
||||
top: 0;
|
||||
right: 0;
|
||||
z-index: 1;
|
||||
width: 6px;
|
||||
width: 8px;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
cursor: col-resize;
|
||||
background-color: rgba(black, 0.05);
|
||||
background-color: rgba(black, 0.1);
|
||||
opacity: 0;
|
||||
border: 1px dashed rgba($blue-color, 0.15);
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user