mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 06:58:58 -05:00
🐛 Fix missing main menu entry version history
This commit is contained in:
parent
9485ce03b5
commit
19b9b3cbd9
3 changed files with 32 additions and 2 deletions
|
@ -524,6 +524,19 @@
|
|||
(when (kbd/enter? event)
|
||||
(on-add-shared event))))
|
||||
|
||||
on-show-version-history
|
||||
(mf/use-fn
|
||||
(mf/deps file-id)
|
||||
(fn [_]
|
||||
(st/emit! (dw/toggle-layout-flag :document-history))))
|
||||
|
||||
on-show-version-history-key-down
|
||||
(mf/use-fn
|
||||
(mf/deps on-show-version-history)
|
||||
(fn [event]
|
||||
(when (kbd/enter? event)
|
||||
(on-show-version-history event))))
|
||||
|
||||
on-export-shapes
|
||||
(mf/use-fn #(st/emit! (de/show-workspace-export-dialog {:origin "workspace:menu"})))
|
||||
|
||||
|
@ -575,14 +588,23 @@
|
|||
:on-click on-remove-shared
|
||||
:on-key-down on-remove-shared-key-down
|
||||
:id "file-menu-remove-shared"}
|
||||
[:span {:class (stl/css :item-name)} (tr "dashboard.unpublish-shared")]])
|
||||
[:span {:class (stl/css :item-name)}
|
||||
(tr "dashboard.unpublish-shared")]])
|
||||
|
||||
(when can-edit
|
||||
[:> dropdown-menu-item* {:class (stl/css :submenu-item)
|
||||
:on-click on-add-shared
|
||||
:on-key-down on-add-shared-key-down
|
||||
:id "file-menu-add-shared"}
|
||||
[:span {:class (stl/css :item-name)} (tr "dashboard.add-shared")]]))
|
||||
[:span {:class (stl/css :item-name)}
|
||||
(tr "dashboard.add-shared")]]))
|
||||
|
||||
[:> dropdown-menu-item* {:class (stl/css :submenu-item)
|
||||
:on-click on-show-version-history
|
||||
:on-key-down on-show-version-history-key-down
|
||||
:id "file-menu-show-version-history"}
|
||||
[:span {:class (stl/css :item-name)}
|
||||
(tr "dashboard.show-version-history")]]
|
||||
|
||||
[:> dropdown-menu-item* {:class (stl/css :submenu-item)
|
||||
:on-click on-export-shapes
|
||||
|
|
|
@ -396,6 +396,10 @@ msgstr "The token has no expiration date"
|
|||
msgid "dashboard.add-shared"
|
||||
msgstr "Add as Shared Library"
|
||||
|
||||
#: src/app/main/ui/workspace/main_menu.cljs:607
|
||||
msgid "dashboard.show-version-history"
|
||||
msgstr "Version history"
|
||||
|
||||
#: src/app/main/ui/settings/profile.cljs:72
|
||||
msgid "dashboard.change-email"
|
||||
msgstr "Change email"
|
||||
|
|
|
@ -398,6 +398,10 @@ msgstr "El token no tiene fecha de expiración"
|
|||
msgid "dashboard.add-shared"
|
||||
msgstr "Añadir como Biblioteca Compartida"
|
||||
|
||||
#: src/app/main/ui/workspace/main_menu.cljs:607
|
||||
msgid "dashboard.show-version-history"
|
||||
msgstr "Histórico de versiones"
|
||||
|
||||
#: src/app/main/ui/settings/profile.cljs:72
|
||||
msgid "dashboard.change-email"
|
||||
msgstr "Cambiar correo"
|
||||
|
|
Loading…
Add table
Reference in a new issue