0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-21 06:16:28 -05:00

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)
:saved (stl/css :status-notification :saved-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])]
(when ^boolean shared?
[:span {:class (stl/css :shared-badge)} i/library])