Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 370c3423

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

Re #8677 - Nová obrazovka Unit

+ new view for all unit sensors

Zobrazit rozdíly:

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

  
10 11
const routes: Routes = [
11 12
  {
......
25 26
    data: {
26 27
      expectedRole: ['1', '0']
27 28
    }
29
  }, {
30
    canActivate: [AuthGuard, RoleGuard],
31
    path: 'dashboard/unit/:unitId',
32
    component: UnitComponent,
33
    pathMatch: 'full',
34
    data: {
35
      expectedRole: ['1', '0']
36
    }
28 37
  }, {
29 38
    canActivate: [AuthGuard, RoleGuard],
30 39
    path: 'administration',

Také k dispozici: Unified diff