enhance: display a loading button when importing files from the disk

This commit is contained in:
Tienson Qin
2021-02-05 16:29:58 +08:00
parent 3d80dc2310
commit d55b381e2e
7 changed files with 87 additions and 58 deletions

View File

@@ -27,7 +27,6 @@
:repo/sync-status {}
:repo/changed-files nil
:nfs/user-granted? {}
:nfs/loading-files? nil
:nfs/refreshing? nil
;; TODO: how to detect the network reliably?
:network/online? true
@@ -113,6 +112,10 @@
[]
(get-in (get-route-match) [:data :name]))
(defn home?
[]
(= :home (get-current-route)))
(defn get-current-page
[]
(and