summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorbeccabroek <rebecca.shaw@ibm.com>2018-07-20 16:08:34 -0500
committerGunnar Mills <gmills@us.ibm.com>2018-07-21 02:56:28 +0000
commit28f4c1e6227814ebe46a07bbf233df2eef25cf03 (patch)
tree52538f90cf332da144e63f892bc97946f8513017 /app
parentffdef96dfd4b4f41bd9d6146f6367cc245e917b1 (diff)
downloadphosphor-webui-28f4c1e6227814ebe46a07bbf233df2eef25cf03.tar.gz
phosphor-webui-28f4c1e6227814ebe46a07bbf233df2eef25cf03.zip
Date validation on event log filtering
User can no longer select an invalid date range. Resolves openbmc/openbmc#3158 Change-Id: Ife8479b465786a617a1746fdbc5b6359f3c36e40 Signed-off-by: beccabroek <rebecca.shaw@ibm.com>
Diffstat (limited to 'app')
-rw-r--r--app/common/directives/log-filter.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/common/directives/log-filter.html b/app/common/directives/log-filter.html
index c1c3122..3e6bc69 100644
--- a/app/common/directives/log-filter.html
+++ b/app/common/directives/log-filter.html
@@ -18,12 +18,12 @@
<p class="filter-label">Filter by date range (MM/DD/YYYY)</p>
<div class="inline">
<label for="event-filter-start-date">Start Date</label>
- <input id="event-filter-start-date" type="date" placeholder="MM/DD/YYYY" ng-model="start_date"/>
+ <input id="event-filter-start-date" type="date" max="{{end_date | date:'yyyy-MM-dd'}}" placeholder="MM/DD/YYYY" ng-model="start_date"/>
</div>
<strong>&ndash;</strong>
<div class="inline">
<label for="event-filter-end-date">End Date</label>
- <input id="event-filter-end-date" type="date" placeholder="MM/DD/YYYY" ng-model="end_date"/>
+ <input id="event-filter-end-date" type="date" min="{{start_date | date:'yyyy-MM-dd'}}"placeholder="MM/DD/YYYY" ng-model="end_date"/>
</div>
</div>
<div class="inline event__status-filter">
OpenPOWER on IntegriCloud