Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 760650ec

Přidáno uživatelem Jakub Hlaváč před téměř 4 roky(ů)

Re #8520 - Obrazovka 'Sensor' - implementace

+ new view Sensor with url /dashboard/unit/:unitId/sensor/:sensorId

Zobrazit rozdíly:

src/app/app-routing.module.ts
5 5
import {AuthGuard} from './auth/guards/auth.guard';
6 6
import {RoleGuard} from './auth/guards/role.guard';
7 7
import {AdministrationComponent} from './administration/components/administration.component';
8
import {SensorComponent} from './sensor/components/sensor.component';
8 9

  
9 10
const routes: Routes = [
10 11
  {
......
16 17
    path: 'dashboard',
17 18
    component: DashboardComponent,
18 19
    pathMatch: 'full'
19
  },
20
  {
20
  }, {
21
    canActivate: [AuthGuard, RoleGuard],
22
    path: 'dashboard/unit/:unitId/sensor/:sensorId',
23
    component: SensorComponent,
24
    pathMatch: 'full',
25
    data: {
26
      expectedRole: ['1', '0']
27
    }
28
  }, {
21 29
    canActivate: [AuthGuard, RoleGuard],
22 30
    path: 'administration',
23 31
    component: AdministrationComponent,

Také k dispozici: Unified diff