mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
parent
763bd1f0e2
commit
bc49041359
8 changed files with 623 additions and 623 deletions
|
@ -28,7 +28,7 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
|
|||
this.get('folderService').setCurrentFolder(folder).then(() => {
|
||||
this.set('isEditor', this.get('folderService').get('canEditCurrentFolder'));
|
||||
this.set('isFolderOwner', this.get('session.user.id') === folder.get('userId'));
|
||||
|
||||
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
|
@ -52,10 +52,11 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
|
|||
|
||||
actions: {
|
||||
error(error /*, transition*/ ) {
|
||||
console.log(error); // eslint-disable-line no-console
|
||||
if (error) {
|
||||
this.transitionTo('/not-found');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue