Skip to content

Commit 5af52ee

Browse files
committed
Minor fixes
- Moved the timeline above the widgets to avoid timelines settings panel to overlap pinned widgets - Show tooltip only when collapsed
1 parent 2d50d48 commit 5af52ee

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

web/client/localConfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
"TOCItemsSettings",
279279
"Tutorial", "MapFooter", {
280280
"name": "Measure"
281-
}, "Print", "ShapeFile", "Timeline", "Playback", {
281+
}, "Print", "ShapeFile", {
282282
"name": "Settings",
283283
"cfg": {
284284
"wrap": true
@@ -348,6 +348,8 @@
348348
}
349349
},
350350
"OmniBar", "Login", "Save", "SaveAs", "BurgerMenu", "Expander", "Undo", "Redo", "FullScreen", "GlobeViewSwitcher", "SearchServicesConfig", "WidgetsBuilder", "Widgets", "WidgetsTray",
351+
"Timeline",
352+
"Playback",
351353
"FeedbackMask",
352354
"StyleEditor"
353355
],

web/client/plugins/timeline/TimelineToggle.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ const withPopover = require('../../components/data/featuregrid/enhancers/withPop
2929
*/
3030
const togglePopover = props$ =>
3131
props$
32+
// only the first time collapsed property is set to true
3233
.distinctUntilKeyChanged('collapsed')
34+
.filter(({ collapsed }) => collapsed)
3335
.take(1)
36+
// show popover for 5 seconds
3437
.switchMap(({ collapseHintPopoverOptions }) =>
3538
Rx.Observable.timer(5000)
3639
.startWith({
@@ -94,7 +97,7 @@ module.exports = compose(
9497
onClick: ({ collapsed, setCollapsed: handler }) => () => handler(!collapsed)
9598
}),
9699
withProps(({collapsed}) => ({
97-
bsStyle: collapsed ? "primary" : "success active",
100+
bsStyle: collapsed ? "primary" : "success",
98101
tooltipId: collapsed ? "timeline.show" : "timeline.hide"
99102
})
100103
)

0 commit comments

Comments
 (0)