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

fix: mention 'task' on scheduled property

as it also belongs to tasks. Also tweak language so that it also starts
with 'Repeat'. Using consistent language helps users understand behavior
that changes depending on configuration
Gabriel Horner 11 месяцев назад
Родитель
Сommit
ddf921f267
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/main/frontend/components/property/value.cljs

+ 2 - 2
src/main/frontend/components/property/value.cljs

@@ -253,8 +253,8 @@
                                                                                                (:db/id property))
                                                       (db-property-handler/remove-block-property! (:db/id block)
                                                                                                   :logseq.task/scheduled-on-property)))))]
-       (if (= :logseq.task/deadline (:db/ident property))
-         [:div "Set as repeated task"]
+       (if (#{:logseq.task/deadline :logseq.task/scheduled} (:db/ident property))
+         [:div "Repeat task"]
          [:div "Repeat " (if (= :date (get-in property [:block/schema :type])) "date" "datetime")])]]
      [:div.flex.flex-row.gap-2
       [:div.flex.text-muted-foreground.mr-4