diff --git a/src/main/frontend/fs/memory_fs.cljs b/src/main/frontend/fs/memory_fs.cljs index 92af9760d6..9b06f1855f 100644 --- a/src/main/frontend/fs/memory_fs.cljs +++ b/src/main/frontend/fs/memory_fs.cljs @@ -3,7 +3,6 @@ Paths are denoted by `memory://`. No open-dir/get-files support." (:require [cljs-bean.core :as bean] - [frontend.db :as db] [frontend.fs.protocol :as protocol] [logseq.common.path :as path] [promesa.core :as p])) @@ -52,10 +51,12 @@ (let [fpath (path/url-to-path dir)] (-> (js/window.pfs.mkdir fpath) (p/catch (fn [error] (println "(memory-fs)Mkdir error: " error))))))) - (mkdir-recur! [this dir] - (p/let [parent (path/parent dir) - _ (when parent ( (js/window.pfs.mkdir fpath #js {:recursive true}) + (p/catch (fn [error] (println "(memory-fs)Mkdir-recur error: " error))))))) + (readdir [_this dir] (when js/window.pfs (let [fpath (path/url-to-path dir)] diff --git a/src/main/frontend/ui.cljs b/src/main/frontend/ui.cljs index e658c4681a..6ed9b59354 100644 --- a/src/main/frontend/ui.cljs +++ b/src/main/frontend/ui.cljs @@ -1026,9 +1026,9 @@ (def icon shui/icon) (rum/defc button-inner - [text & {:keys [background href class intent on-click small? title icon icon-props disabled? button-props] + [text & {:keys [background href class intent on-click small? icon icon-props disabled? button-props] :or {small? false} - :as option}] + :as option}] (let [opts {:text text :theme (when (contains? #{"link" "border-link"} intent) :text) :href href