0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 15:09:10 -05:00

🐛 Fix missing main menu entry version history

This commit is contained in:
AzazelN28 2024-11-22 13:31:17 +01:00 committed by Alonso Torres
parent 9485ce03b5
commit 19b9b3cbd9
3 changed files with 32 additions and 2 deletions

View file

@ -524,6 +524,19 @@
(when (kbd/enter? event) (when (kbd/enter? event)
(on-add-shared 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 on-export-shapes
(mf/use-fn #(st/emit! (de/show-workspace-export-dialog {:origin "workspace:menu"}))) (mf/use-fn #(st/emit! (de/show-workspace-export-dialog {:origin "workspace:menu"})))
@ -575,14 +588,23 @@
:on-click on-remove-shared :on-click on-remove-shared
:on-key-down on-remove-shared-key-down :on-key-down on-remove-shared-key-down
:id "file-menu-remove-shared"} :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 (when can-edit
[:> dropdown-menu-item* {:class (stl/css :submenu-item) [:> dropdown-menu-item* {:class (stl/css :submenu-item)
:on-click on-add-shared :on-click on-add-shared
:on-key-down on-add-shared-key-down :on-key-down on-add-shared-key-down
:id "file-menu-add-shared"} :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) [:> dropdown-menu-item* {:class (stl/css :submenu-item)
:on-click on-export-shapes :on-click on-export-shapes

View file

@ -396,6 +396,10 @@ msgstr "The token has no expiration date"
msgid "dashboard.add-shared" msgid "dashboard.add-shared"
msgstr "Add as Shared Library" 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 #: src/app/main/ui/settings/profile.cljs:72
msgid "dashboard.change-email" msgid "dashboard.change-email"
msgstr "Change email" msgstr "Change email"

View file

@ -398,6 +398,10 @@ msgstr "El token no tiene fecha de expiración"
msgid "dashboard.add-shared" msgid "dashboard.add-shared"
msgstr "Añadir como Biblioteca Compartida" 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 #: src/app/main/ui/settings/profile.cljs:72
msgid "dashboard.change-email" msgid "dashboard.change-email"
msgstr "Cambiar correo" msgstr "Cambiar correo"