All Downloads are FREE. Search and download functionalities are using the official Maven repository.

src.app.modules.dataset.dataset.routes.ts Maven / Gradle / Ivy

There is a newer version: 3.0.0
Show newest version
import { Routes } from '@angular/router';

import { DatasetListComponent } from './components/dataset-list/dataset-list.component';
import { DatasetEditionComponent } from './components/dataset-edition/dataset-edition.component';
import { CanDeactivateGuard, AuthGuard } from '@core/guards';
import { Authorization } from '@model';

export const DatasetRoute: Routes = [

    {
        path: '',
        component: DatasetListComponent,
        canActivate: [AuthGuard],
        data: { 'authorizations': [ Authorization.DATASET_READ,Authorization.DATASET_WRITE ] }
    },
    {
        path: ':id/edition',
        component: DatasetEditionComponent,
        canDeactivate: [CanDeactivateGuard],
        canActivate: [AuthGuard],
        data: { 'authorizations': [ Authorization.DATASET_WRITE ] }
    },
    {
        path: 'edition',
        component: DatasetEditionComponent,
        canDeactivate: [CanDeactivateGuard],
        canActivate: [AuthGuard],
        data: { 'authorizations': [ Authorization.DATASET_WRITE ] }
    }
];




© 2015 - 2025 Weber Informatics LLC | Privacy Policy