Merge branch 'maintenance' into devel
Conflicts: src/octoprint/static/js/app/viewmodels/loginstate.js
This commit is contained in:
commit
dd73a23940
1 changed files with 5 additions and 0 deletions
|
|
@ -87,6 +87,11 @@ $(function() {
|
|||
.done(function(response) {
|
||||
new PNotify({title: gettext("Logout successful"), text: gettext("You are now logged out"), type: "success"});
|
||||
self.fromResponse(response);
|
||||
})
|
||||
.error(function(error) {
|
||||
if (error && error.status === 401) {
|
||||
self.fromResponse(false);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue