Skip to content
Snippets Groups Projects
Commit 30cabf5e authored by Muthukrishnanmatriot's avatar Muthukrishnanmatriot
Browse files

TMSS-960 - Updated the filter for boolean to hold external filter value

parent c5157f6c
No related branches found
No related tags found
2 merge requests!634WIP: COBALT commissioning delta,!553Resolve TMSS-960
......@@ -138,7 +138,7 @@ export class ReservationList extends Component{
this.cycleList= [];
this.selectedRows = [];
this.totalPage = 0;
this.pageUpdated = false;
this.pageUpdated = true;
this.onRowSelection = this.onRowSelection.bind(this);
this.confirmDeleteReservations = this.confirmDeleteReservations.bind(this);
this.deleteReservations = this.deleteReservations.bind(this);
......@@ -191,10 +191,13 @@ export class ReservationList extends Component{
this.setState({fEndTime: '', cycle: ''});
}
}
let filter = _.find(filters, function(filter){
return (filter.id === 'Start Time' && filter.value.length>0) && (filter.id === 'End Time' && filter.value.length>0)
let filterStartTime = _.find(filters, function(filter){
return (filter.id === 'Start Time' && filter.value.length>0);
});
let filterEndTime = _.find(filters, function(filter){
return (filter.id === 'End Time' && filter.value.length>0)
});
if (!filter) {
if (!filterStartTime && !filterEndTime) {
this.setState({cycle: ''});
}
}
......@@ -704,7 +707,7 @@ export class ReservationList extends Component{
filter={true}
showClear={true}
showFilterClear={true}
tooltip="Select Cycle to search appropriate reservation, based on Cycle's Start & Stop time it will find reservation"
tooltip="Select cycle to view reservations that start and end in the cycle (will not include those are reserved for unknown duration)"
/>
<label htmlFor="cycle" >Filter by Cycle</label>
</span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment