Browse Source

fix: re-enable /cloze and /cards for db-based graphs

Tienson Qin 1 year ago
parent
commit
ab0d65c41a

+ 0 - 1
src/main/frontend/components/container.cljs

@@ -25,7 +25,6 @@
             [frontend.db.model :as db-model]
             [frontend.extensions.pdf.utils :as pdf-utils]
             [frontend.storage :as storage]
-            [frontend.extensions.srs :as srs]
             [frontend.handler.common :as common-handler]
             [frontend.handler.editor :as editor-handler]
             [frontend.handler.page :as page-handler]

+ 3 - 5
src/main/frontend/extensions/srs.cljs

@@ -1,5 +1,5 @@
 (ns frontend.extensions.srs
-  "SRS fns, will be depreated in db-based version.
+  "SRS fns, will be deprecated in db-based version.
   see also `frontend.extensions.fsrs`"
   (:require [cljs-time.coerce :as tc]
             [cljs-time.core :as t]
@@ -773,14 +773,12 @@
 (commands/register-slash-command ["Cards"
                                   [[:editor/input "{{cards }}" {:backward-pos 2}]]
                                   "Create a cards query"
-                                  {:db-graph? false
-                                   :icon :icon/cards}])
+                                  {:icon :icon/cards}])
 
 (commands/register-slash-command ["Cloze"
                                   [[:editor/input "{{cloze }}" {:backward-pos 2}]]
                                   "Create a cloze"
-                                  {:db-graph? false
-                                   :icon :icon/eye-question}])
+                                  {:icon :icon/eye-question}])
 
 ;; handlers
 (defn add-card-tag-to-block