mirror of
https://github.com/penpot/penpot.git
synced 2025-01-21 14:12:36 -05:00
🐛 Remove file history versions menu options on view mode
This commit is contained in:
parent
36121d862d
commit
b9cb415507
1 changed files with 16 additions and 14 deletions
|
@ -613,23 +613,25 @@
|
||||||
[:span {:class (stl/css :item-name)}
|
[:span {:class (stl/css :item-name)}
|
||||||
(tr "dashboard.add-shared")]]))
|
(tr "dashboard.add-shared")]]))
|
||||||
|
|
||||||
[:div {:class (stl/css :separator)}]
|
(when can-edit
|
||||||
|
[:*
|
||||||
|
[:div {:class (stl/css :separator)}]
|
||||||
|
|
||||||
[:> dropdown-menu-item* {:class (stl/css :submenu-item)
|
[:> dropdown-menu-item* {:class (stl/css :submenu-item)
|
||||||
:on-click on-pin-version
|
:on-click on-pin-version
|
||||||
:on-key-down on-pin-version-key-down
|
:on-key-down on-pin-version-key-down
|
||||||
:id "file-menu-show-version-history"}
|
:id "file-menu-show-version-history"}
|
||||||
[:span {:class (stl/css :item-name)}
|
[:span {:class (stl/css :item-name)}
|
||||||
(tr "dashboard.create-version-menu")]]
|
(tr "dashboard.create-version-menu")]]
|
||||||
|
|
||||||
[:> dropdown-menu-item* {:class (stl/css :submenu-item)
|
[:> dropdown-menu-item* {:class (stl/css :submenu-item)
|
||||||
:on-click on-show-version-history
|
:on-click on-show-version-history
|
||||||
:on-key-down on-show-version-history-key-down
|
:on-key-down on-show-version-history-key-down
|
||||||
:id "file-menu-show-version-history"}
|
:id "file-menu-show-version-history"}
|
||||||
[:span {:class (stl/css :item-name)}
|
[:span {:class (stl/css :item-name)}
|
||||||
(tr "dashboard.show-version-history")]]
|
(tr "dashboard.show-version-history")]]
|
||||||
|
|
||||||
[:div {:class (stl/css :separator)}]
|
[:div {:class (stl/css :separator)}]])
|
||||||
|
|
||||||
[:> 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue