浏览代码

fix: lint

Tienson Qin 6 月之前
父节点
当前提交
b30f679eef
共有 2 个文件被更改,包括 9 次插入9 次删除
  1. 9 0
      src/main/frontend/handler/events/ui.cljs
  2. 0 9
      src/main/frontend/handler/file_based/events.cljs

+ 9 - 0
src/main/frontend/handler/events/ui.cljs

@@ -391,3 +391,12 @@
                                     (util/uuid-string? (second (:sync-meta %)))) repos)
                                     (util/uuid-string? (second (:sync-meta %)))) repos)
                     (sync/<sync-start)))))
                     (sync/<sync-start)))))
             (file-sync/maybe-onboarding-show status)))))))
             (file-sync/maybe-onboarding-show status)))))))
+
+(defmethod events/handle :file-sync/onboarding-tip [[_ type opts]]
+  (let [type (keyword type)]
+    (when-not (config/db-based-graph? (state/get-current-repo))
+      (shui/dialog-open!
+       (file-sync/make-onboarding-panel type)
+       (merge {:close-btn? false
+               :center? true
+               :close-backdrop? (not= type :welcome)} opts)))))

+ 0 - 9
src/main/frontend/handler/file_based/events.cljs

@@ -200,15 +200,6 @@
    (file-sync/pick-page-histories-panel graph-uuid page-name)
    (file-sync/pick-page-histories-panel graph-uuid page-name)
    {:id :page-histories :label "modal-page-histories"}))
    {:id :page-histories :label "modal-page-histories"}))
 
 
-(defmethod events/handle :file-sync/onboarding-tip [[_ type opts]]
-  (let [type (keyword type)]
-    (when-not (config/db-based-graph? (state/get-current-repo))
-      (shui/dialog-open!
-       (file-sync/make-onboarding-panel type)
-       (merge {:close-btn? false
-               :center? true
-               :close-backdrop? (not= type :welcome)} opts)))))
-
 (defmethod events/handle :file-sync/maybe-onboarding-show [[_ type]]
 (defmethod events/handle :file-sync/maybe-onboarding-show [[_ type]]
   (file-sync/maybe-onboarding-show type))
   (file-sync/maybe-onboarding-show type))