mirror of
https://github.com/documize/community.git
synced 2025-08-02 03:55:24 +02:00
Improved self-managed install wizard layout
This commit is contained in:
parent
c0c3ca18e2
commit
89a7496c7f
6 changed files with 795 additions and 795 deletions
|
@ -10,8 +10,8 @@
|
|||
// https://documize.com
|
||||
|
||||
import RSVP from 'rsvp';
|
||||
|
||||
import { inject as service } from '@ember/service';
|
||||
import { isForbiddenError } from 'ember-ajax/errors';
|
||||
import BaseService from '../services/base';
|
||||
|
||||
export default BaseService.extend({
|
||||
|
@ -110,6 +110,12 @@ export default BaseService.extend({
|
|||
});
|
||||
|
||||
return data;
|
||||
}).catch((error) => {
|
||||
if (isForbiddenError(error)) {
|
||||
this.get('localStorage').clearAll();
|
||||
this.get('router').transitionTo('auth.login');
|
||||
}
|
||||
return error;
|
||||
});
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue