Skip to content

Commit

Permalink
fix(admin-ui): Fix boolean configurable input
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed May 14, 2019
1 parent 9c4f8fb commit 994264d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
(itemsPerPageChange)="setItemsPerPage($event)"
>
<vdr-dt-column>{{ 'common.ID' | translate }}</vdr-dt-column>
<vdr-dt-column>{{ 'common.code' | translate }}</vdr-dt-column>
<vdr-dt-column>{{ 'common.name' | translate }}</vdr-dt-column>
<vdr-dt-column>{{ 'common.created-at' | translate }}</vdr-dt-column>
<vdr-dt-column>{{ 'common.updated-at' | translate }}</vdr-dt-column>
<vdr-dt-column></vdr-dt-column>
<ng-template let-promotion="item">
<td class="left">{{ promotion.id }}</td>
<td class="left">{{ promotion.name }}</td>
<td class="left">{{ promotion.createdAt }}</td>
<td class="left">{{ promotion.updatedAt }}</td>
<td class="left">{{ promotion.createdAt | date: 'longDate' }}</td>
<td class="left">{{ promotion.updatedAt | date: 'longDate' }}</td>
<td class="right">
<vdr-table-row-action
iconShape="edit"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<form [formGroup]="form" *ngIf="operation" class="operation-inputs">
<div *ngFor="let arg of operation.args" class="arg-row">
<label>{{ arg.name | sentenceCase }}</label>
<div *ngIf="arg.type === 'boolean'" class="checkbox">
<div *ngIf="arg.type === ConfigArgType.BOOLEAN" class="checkbox">
<input type="checkbox" [formControlName]="arg.name" [id]="arg.name" />
<label [for]="arg.name"></label>
</div>
Expand Down

0 comments on commit 994264d

Please sign in to comment.