Commit 6c2b5193 authored by juminet's avatar juminet

[client/geothermie] in issue 91: hide extra text by default when clicking back

parent 418b7c48
import { DIV } from 'sdi/components/elements';
import { navigateSystem } from 'geothermie/src/events/route';
import { setMoreTextHiddenColumWise } from 'geothermie/src/events/geothermie';
import { setMoreTextHiddenColumWise, setShowPartTableGeol, setShowPartTableHydro } from 'geothermie/src/events/geothermie';
import { getX, getY, getSystem } from 'geothermie/src/queries/geothermie';
import { getPersistentLayout } from 'geothermie/src/queries/app';
import tr, { formatDate } from 'sdi/locale';
......@@ -12,6 +12,8 @@ const buttonBack = () =>
className: 'geo-btn geo-btn--2',
onClick: () => {
setMoreTextHiddenColumWise('detailledLithology', true);
setShowPartTableGeol(false);
setShowPartTableHydro(false);
navigateSystem(
getSystem().fold('close', s => s),
getPersistentLayout() === 'print' ?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment