Mercurial > gemma
diff client/src/store/fairwayavailability.js @ 3288:c2d753ef5aa1
fairway_availability: sane defaults and ISC colors for diagram
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 16 May 2019 12:48:23 +0200 |
parents | 3b36bb33f5b0 |
children | ef52926ce2fc |
line wrap: on
line diff
--- a/client/src/store/fairwayavailability.js Thu May 16 12:30:58 2019 +0200 +++ b/client/src/store/fairwayavailability.js Thu May 16 12:48:23 2019 +0200 @@ -13,17 +13,18 @@ */ import { HTTP } from "@/lib/http"; +import { format, subYears } from "date-fns"; const init = () => { return { type: "bottlenecks", selectedFairwayAvailabilityFeature: null, - from: null, - to: null, - frequency: null, + to: format(new Date(), "YYYY-MM-DD"), + from: format(subYears(new Date(), 1), "YYYY-MM-DD"), + frequency: "monthly", fwData: null, legend: null, - LOS: null + LOS: 3 }; };