mirror of
https://github.com/logseq/logseq.git
synced 2026-05-24 20:54:09 +00:00
enhance: importer displays one notification about ignored files
rather than one notification per file. Also ignore pdf highlight pages as user graphs shouldn't fail hard on features that aren't imported yet. This allowed the user graph in https://github.com/logseq/db-test/issues/191 to import without errors
This commit is contained in:
@@ -284,6 +284,13 @@
|
||||
(log/info :org-files (mapv :path org-files))
|
||||
(notification/show! (str "Imported " (count org-files) " org file(s) as markdown. Support for org files will be added later.")
|
||||
:info false))
|
||||
(when-let [ignored-files (seq @(:ignored-files import-state))]
|
||||
(notification/show! (str "Import ignored " (count ignored-files) " "
|
||||
(if (= 1 (count ignored-files)) "file" "files")
|
||||
". See the javascript console for more details.")
|
||||
:info false)
|
||||
(log/error :import-ignored-files {:msg (str "Import ignored " (count ignored-files) " file(s)")})
|
||||
(pprint/pprint ignored-files))
|
||||
(when-let [ignored-props (seq @(:ignored-properties import-state))]
|
||||
(notification/show!
|
||||
[:.mb-2
|
||||
|
||||
Reference in New Issue
Block a user