Projekt

Obecné

Profil

« Předchozí | Další » 

Revize c3e17dae

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

Re #8787 - Přidat unit - úprava formuláře

  • add unit is now in the nav-bar

Zobrazit rozdíly:

src/app/dashboard/components/dashboard.component.html
14 14
          <div class="col-md-8"><h3>{{ unit.unit.description}}</h3></div>
15 15
          <div class="col-md-4 text-right">
16 16
            <p-button label="Sensors graph" icon="pi pi-chart-line" [routerLink]="['/dashboard/unit', unit.unit.unitId]"></p-button>
17
            <p-splitButton label="Add sensor" (onClick)="insertSensorPopup($event, unit.unit)" icon="pi pi-plus-circle" (onDropdownClick)="showItems($event, unit.unit)" [model]="items" styleClass="p-button-warning"></p-splitButton>
17
            <p-splitButton *ngIf="loggedUser?.userInfo?.rightsId == 0 || loggedUser?.userInfo?.rightsId == 1" label="Add sensor" (onClick)="insertSensorPopup($event, unit.unit)" icon="pi pi-plus-circle" (onDropdownClick)="showItems($event, unit.unit)" [model]="items" styleClass="p-button-warning"></p-splitButton>
18 18
          </div>
19 19
        </div>
20 20
      </p-header>
21 21
      <div>
22
        <app-sensors *ngFor="let sensor of unit.sensors" [sensor]="sensor" [unitId]="unit.unit.unitId" [phenomenons]="phenomenons"></app-sensors>
22
        <app-sensors *ngFor="let sensor of unit.sensors" [sensor]="sensor" [unitId]="unit.unit.unitId" [phenomenons]="phenomenons" [loggedUser]="loggedUser"></app-sensors>
23 23
      </div>
24 24
    </p-accordionTab>
25 25
</p-accordion>
26 26
</div>
27 27

  
28 28
<app-unit-popup *ngIf="editedUnit" [(isVisible)]="showEditUnitPopup" [unit]="editedUnit"></app-unit-popup>
29
<app-unit-insert-popup [(isVisible)]="showInsertUnitPopup" [phenomenons]="phenomenons"></app-unit-insert-popup>
30 29
<app-sensor-insert-popup *ngIf="editedUnit" [unit]="editedUnit" [(isVisible)]="showInsertSensorPopup" [phenomenons]="phenomenons"></app-sensor-insert-popup>
31 30

  
32 31

  

Také k dispozici: Unified diff