401 error alert
This commit is contained in:
@@ -45,7 +45,7 @@ class HttpManager {
|
|||||||
} else {
|
} else {
|
||||||
console.error("Request error:", response);
|
console.error("Request error:", response);
|
||||||
this.$timeout(function(){
|
this.$timeout(function(){
|
||||||
onerror(response)
|
onerror(response, xmlhttp.status)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -411,7 +411,7 @@ class SyncManager {
|
|||||||
) {
|
) {
|
||||||
this.$rootScope.$broadcast("major-data-change");
|
this.$rootScope.$broadcast("major-data-change");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.callQueuedCallbacksAndCurrent(callback, response);
|
this.callQueuedCallbacksAndCurrent(callback, response);
|
||||||
this.$rootScope.$broadcast("sync:completed", {retrievedItems: this.allRetreivedItems, savedItems: this.allSavedItems});
|
this.$rootScope.$broadcast("sync:completed", {retrievedItems: this.allRetreivedItems, savedItems: this.allSavedItems});
|
||||||
|
|
||||||
@@ -429,7 +429,10 @@ class SyncManager {
|
|||||||
console.log("Caught sync success exception:", e);
|
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);
|
console.log("Sync error: ", response);
|
||||||
var error = response ? response.error : {message: "Could not connect to server."};
|
var error = response ? response.error : {message: "Could not connect to server."};
|
||||||
|
|
||||||
|
|||||||
@@ -87,13 +87,12 @@ $footer-height: 32px;
|
|||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
width: 6px;
|
width: 8px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
cursor: col-resize;
|
cursor: col-resize;
|
||||||
background-color: rgba(black, 0.05);
|
background-color: rgba(black, 0.1);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
border: 1px dashed rgba($blue-color, 0.15);
|
|
||||||
border-top: none;
|
border-top: none;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user