Add status tooltips

This commit is contained in:
Elhombretecla
2025-02-05 10:43:39 +01:00
parent 1bc25e6d7d
commit f352fb11b3

View File

@@ -118,7 +118,19 @@
:saving (stl/css :status-notification :saving-status) :saving (stl/css :status-notification :saving-status)
:saved (stl/css :status-notification :saved-status) :saved (stl/css :status-notification :saved-status)
:error (stl/css :status-notification :error-status) :error (stl/css :status-notification :error-status)
(stl/css :status-notification))}] (stl/css :status-notification))
:title (case (mf/deref ref:persistence-status)
:pending (tr "workspace.header.saving")
:saving (tr "workspace.header.saving")
:saved (tr "workspace.header.saved")
:error (tr "workspace.header.save-error")
nil)}
(case (mf/deref ref:persistence-status)
:pending i/status-alert
:saving i/status-alert
:saved i/status-tick
:error i/status-wrong
nil)]
file-name])] file-name])]
(when ^boolean shared? (when ^boolean shared?
[:span {:class (stl/css :shared-badge)} i/library]) [:span {:class (stl/css :shared-badge)} i/library])