llcc 3 лет назад
Родитель
Сommit
744f1b4964

+ 1 - 6
src/main/frontend/components/editor.cljs

@@ -7,9 +7,6 @@
             [frontend.components.datetime :as datetime-comp]
             [frontend.components.datetime :as datetime-comp]
             [frontend.components.search :as search]
             [frontend.components.search :as search]
             [frontend.components.svg :as svg]
             [frontend.components.svg :as svg]
-            [frontend.mobile.camera :as mobile-camera]
-            [frontend.mobile.util :as mobile-util]
-            [frontend.config :as config]
             [frontend.db :as db]
             [frontend.db :as db]
             [frontend.db.model :as db-model]
             [frontend.db.model :as db-model]
             [frontend.extensions.zotero :as zotero]
             [frontend.extensions.zotero :as zotero]
@@ -26,9 +23,7 @@
             [goog.dom :as gdom]
             [goog.dom :as gdom]
             [promesa.core :as p]
             [promesa.core :as p]
             [rum.core :as rum]
             [rum.core :as rum]
-            [frontend.handler.history :as history]
-            [frontend.mobile.footer :as footer]
-            [frontend.handler.config :as config-handler]))
+            [frontend.mobile.footer :as footer]))
 
 
 (rum/defc commands < rum/reactive
 (rum/defc commands < rum/reactive
   [id format]
   [id format]

+ 2 - 1
src/main/frontend/mobile/footer.cljs

@@ -46,7 +46,8 @@
 
 
 (rum/defc footer < rum/reactive
 (rum/defc footer < rum/reactive
   []
   []
-  (when (state/sub :mobile/show-tabbar?)
+  (when (and (state/sub :mobile/show-tabbar?)
+             (state/get-current-repo))
     [:div.cp__footer.w-full.bottom-0.justify-between
     [:div.cp__footer.w-full.bottom-0.justify-between
      (audio-record-cp)
      (audio-record-cp)
      (mobile-bar-command #(state/toggle-document-mode!) "notes")
      (mobile-bar-command #(state/toggle-document-mode!) "notes")

+ 1 - 1
src/main/frontend/util.cljc

@@ -13,7 +13,7 @@
             [cljs-time.coerce :as tc]
             [cljs-time.coerce :as tc]
             [cljs-time.core :as t]
             [cljs-time.core :as t]
             [dommy.core :as d]
             [dommy.core :as d]
-            [frontend.mobile.util :refer [native-platform? native-ios?]]
+            [frontend.mobile.util :refer [native-platform?]]
             [goog.dom :as gdom]
             [goog.dom :as gdom]
             [goog.object :as gobj]
             [goog.object :as gobj]
             [goog.string :as gstring]
             [goog.string :as gstring]