1
0
Fork 0
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:
sauls8t 2019-01-26 13:24:54 +00:00
parent c0c3ca18e2
commit 89a7496c7f
6 changed files with 795 additions and 795 deletions

View file

@ -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;
});
},