perbaikan device
This commit is contained in:
parent
5cbd0f09dc
commit
19b43b8a2d
|
@ -356,13 +356,13 @@
|
|||
</ng-template>
|
||||
</ngx-datatable-column>
|
||||
<ngx-datatable-column
|
||||
name="roomName"
|
||||
name="categoryName"
|
||||
[flexGrow]="1"
|
||||
[minWidth]="90"
|
||||
>
|
||||
<ng-template ngx-datatable-header-template>
|
||||
<span style="color: #ffffff !important"
|
||||
>Room</span
|
||||
>Category</span
|
||||
>
|
||||
</ng-template>
|
||||
<ng-template
|
||||
|
@ -373,13 +373,13 @@
|
|||
</ng-template>
|
||||
</ngx-datatable-column>
|
||||
<ngx-datatable-column
|
||||
name="categoryName"
|
||||
name="roomName"
|
||||
[flexGrow]="1"
|
||||
[minWidth]="90"
|
||||
>
|
||||
<ng-template ngx-datatable-header-template>
|
||||
<span style="color: #ffffff !important"
|
||||
>Category</span
|
||||
>Room</span
|
||||
>
|
||||
</ng-template>
|
||||
<ng-template
|
||||
|
|
|
@ -314,6 +314,11 @@
|
|||
color: #ffffff !important;
|
||||
background-color: #252525 !important;
|
||||
height: 40px !important;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
:host ::ng-deep .ng-select .ng-select-container .ng-value-container .ng-input>input {
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
:host ::ng-deep .ngx-datatable.bootstrap .datatable-body-row {
|
||||
|
|
|
@ -176,7 +176,8 @@
|
|||
(click)="doFilter()"
|
||||
style="
|
||||
background-color: #252525 !important;
|
||||
border-color: #bef264 !important;
|
||||
border-color: #ffffff !important;
|
||||
border-radius: 12px;
|
||||
"
|
||||
[disabled]="spinnerFilterActive"
|
||||
>
|
||||
|
@ -191,9 +192,23 @@
|
|||
*ngIf="spinnerFilterActive"
|
||||
></i>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-outline-success ml-2"
|
||||
(click)="doCancelFilter()"
|
||||
style="
|
||||
background-color: #252525 !important;
|
||||
border-color: #ffffff !important;
|
||||
color: #ffffff;
|
||||
border-radius: 12px;
|
||||
"
|
||||
>
|
||||
Cancel
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row mb-2">
|
||||
<div class="col-6 col-md-3 mb-2">
|
||||
<button
|
||||
|
|
|
@ -121,15 +121,30 @@ export class DeviceComponent implements OnInit {
|
|||
}
|
||||
|
||||
doFilter() {
|
||||
this.spinnerFilterActive = true;
|
||||
this.fetchData(
|
||||
this.buildingSelected,
|
||||
this.categorySelected,
|
||||
this.statusSelected
|
||||
);
|
||||
setTimeout(() => {
|
||||
this.spinnerFilterActive = false;
|
||||
}, 3000);
|
||||
if (!this.buildingSelected) {
|
||||
this.toastr.error("Warning", "Filter Building tidak boleh kosong.", {
|
||||
timeOut: 5000,
|
||||
closeButton: true,
|
||||
});
|
||||
} else {
|
||||
this.spinnerFilterActive = true;
|
||||
this.fetchData(
|
||||
this.buildingSelected,
|
||||
this.categorySelected,
|
||||
this.statusSelected
|
||||
);
|
||||
setTimeout(() => {
|
||||
this.spinnerFilterActive = false;
|
||||
}, 3000);
|
||||
}
|
||||
}
|
||||
|
||||
doCancelFilter() {
|
||||
this.storedData = JSON.parse(localStorage.getItem("currentUser"));
|
||||
this.buildingSelected = this.storedData.buildingId;
|
||||
this.categorySelected = undefined;
|
||||
this.statusSelected = undefined;
|
||||
this.fetchData(this.buildingSelected, 0, 0);
|
||||
}
|
||||
|
||||
filterRows() {
|
||||
|
|
Loading…
Reference in New Issue