Просмотр исходного кода

Update page deletion messages so page content deletion is expected

Part of LOG-2733
Gabriel Horner 2 лет назад
Родитель
Сommit
82c49bb420
2 измененных файлов с 5 добавлено и 5 удалено
  1. 4 4
      src/main/frontend/handler/common/page.cljs
  2. 1 1
      src/resources/dicts/en.edn

+ 4 - 4
src/main/frontend/handler/common/page.cljs

@@ -274,16 +274,16 @@
     (cond
       (and (contains? (:block/type page) "class")
            (seq (model/get-tag-blocks repo (:block/name page))))
-      {:msg "Unable to delete this page because blocks are tagged with this page"}
+      {:msg "Page content deleted but unable to delete this page because blocks are tagged with this page"}
       (contains? (:block/type page) "property")
       (cond (seq (model/get-classes-with-property (:block/uuid page)))
-            {:msg "Unable to delete this page because classes use this property"}
+            {:msg "Page content deleted but unable to delete this page because classes use this property"}
             (->> (model/get-block-property-values (:block/uuid page))
                  (filter (fn [[_ v]] (if (seq? v) (seq v) (some? v))))
                  seq)
-            {:msg "Unable to delete this page because blocks use this property"})
+            {:msg "Page content deleted but unable to delete this page because blocks use this property"})
       (seq (:block/_refs page))
-      {:msg "Unable to delete this page because there're still references to it"})
+      {:msg "Page content deleted but unable to delete this page because there're still references to it"})
     (catch :default e
       (log/error :exception e)
       (state/pub-event! [:capture-error {:error e}])

+ 1 - 1
src/resources/dicts/en.edn

@@ -521,7 +521,7 @@
  :export-save-to-file "Save to file"
  :all-graphs "All graphs"
  :all-pages "All pages"
- :all-pages/failed-to-delete-pages "Some pages did not to delete: {1}. See javascript console for more details."
+ :all-pages/failed-to-delete-pages "These pages had their content deleted but were unable to be deleted: {1}. See javascript console for more details."
  :all-whiteboards "All whiteboards"
  :all-files "All files"
  :remove-orphaned-pages "Remove orphaned pages?"