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:
parent
1bc25e6d7d
commit
f352fb11b3
1 changed files with 13 additions and 1 deletions
|
@ -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])
|
||||
|
|
Loading…
Add table
Reference in a new issue