Skip to content
Snippets Groups Projects
Commit 24cab561 authored by Eugen Ciur's avatar Eugen Ciur
Browse files

linting

parent 5a65008e
No related branches found
No related tags found
No related merge requests found
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
export default class RentalRoute extends Route {
export default class DocumentRoute extends Route {
@service store;
async model(params) {
......
import { inject as service } from '@ember/service';
import BaseRoute from 'papermerge/base/routing';
export default class GroupsRoute extends BaseRoute {
@service store;
......
......@@ -8,6 +8,8 @@ export default class IndexRoute extends Route {
@service currentUser;
async beforeModel(transition) {
/* Redirects to user's home folder
*/
let that = this;
this.session.requireAuthentication(transition, 'login');
......
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
export default class TagRoute extends Route {
@service store;
......
import { inject as service } from '@ember/service';
import BaseRoute from 'papermerge/base/routing';
export default class TagsRoute extends BaseRoute {
@service store;
......
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
export default class LoginRoute extends Route {
@service session;
beforeModel(transition) {
beforeModel() {
this.session.prohibitAuthentication('roles');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment