From 47c83c5d34bc2ef8c3b38ba9671de345f981dfbf Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Fri, 2 Mar 2018 17:02:03 +1300 Subject: [PATCH] Show panel on first launch --- CHANGELOG.md | 4 ++++ src/day8/re_frame_10x/db.cljs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4897f56..6c06fb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This change ## [0.2.1] - Unreleased +### Changed + +* Set default behaviour on first launch to show the re-frame-10x panel instead of keeping it hidden. This will help people better debug their setup when they are configuring re-frame-10x. + ### Fixed * Bug where under certain rare circumstances relating to the structure of your app-db, the Event panel could throw an error when transitioning from one epoch to another. diff --git a/src/day8/re_frame_10x/db.cljs b/src/day8/re_frame_10x/db.cljs index e1b4827..fbe0f40 100644 --- a/src/day8/re_frame_10x/db.cljs +++ b/src/day8/re_frame_10x/db.cljs @@ -4,7 +4,7 @@ (defn init-db [debug?] (let [panel-width% (localstorage/get "panel-width-ratio" 0.35) - show-panel? (localstorage/get "show-panel" false) + show-panel? (localstorage/get "show-panel" true) selected-tab (localstorage/get "selected-tab" :app-db) filter-items (localstorage/get "filter-items" []) app-db-paths (into (sorted-map) (localstorage/get "app-db-paths" {}))