Mercurial > gemma
diff client/src/store/imports.js @ 2753:2aa1620ffd9e
search: in context of importoverview pressing enter triggers a request for and updated dataset
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 21 Mar 2019 13:03:27 +0100 |
parents | cd789302b3e2 |
children | 7badd99c9315 |
line wrap: on
line diff
--- a/client/src/store/imports.js Thu Mar 21 12:53:39 2019 +0100 +++ b/client/src/store/imports.js Thu Mar 21 13:03:27 2019 +0100 @@ -15,6 +15,7 @@ import { HTTP } from "@/lib/http"; import { WFS } from "ol/format.js"; import { equalTo as equalToFilter } from "ol/format/filter.js"; +import { startOfHour } from "date-fns"; /* eslint-disable no-unused-vars */ /* eslint-disable no-unreachable */ @@ -40,7 +41,9 @@ show: NODETAILS, showAdditional: NODETAILS, showLogs: NODETAILS, - details: [] + details: [], + startDate: startOfHour(new Date()), + endDate: new Date() }; }; @@ -94,6 +97,12 @@ } }, mutations: { + setStartDate: (state, start) => { + state.startDate = start; + }, + setEndDate: (state, end) => { + state.endDate = end; + }, setCurrentDetails: (state, details) => { state.details = details; },