Remove not necessary check on upgrade-version notification

This commit is contained in:
Andrey Antukh 2024-11-20 15:30:23 +01:00
parent 64c8741233
commit 5cc678ddc3

View file

@ -12,7 +12,6 @@
[app.common.schema :as sm] [app.common.schema :as sm]
[app.common.types.components-list :as ctkl] [app.common.types.components-list :as ctkl]
[app.common.types.team :as ctt] [app.common.types.team :as ctt]
[app.config :as cf]
[app.main.data.modal :as modal] [app.main.data.modal :as modal]
[app.main.data.notifications :as ntf] [app.main.data.notifications :as ntf]
[app.main.features :as features] [app.main.features :as features]
@ -75,15 +74,13 @@
(watch [_ _ _] (watch [_ _ _]
(case code (case code
:upgrade-version :upgrade-version
(when (or (not= (:version params) (:full cf/version)) (rx/of (ntf/dialog
(true? (:force params))) :content (tr "notifications.by-code.upgrade-version")
(rx/of (ntf/dialog :controls :inline-actions
:content (tr "notifications.by-code.upgrade-version") :type :inline
:controls :inline-actions :level level
:type :inline :actions [{:label "Refresh" :callback force-reload!}]
:level level :tag :notification))
:actions [{:label "Refresh" :callback force-reload!}]
:tag :notification)))
:maintenance :maintenance
(rx/of (ntf/dialog (rx/of (ntf/dialog