diff --git a/frontend/src/app/main/ui/workspace/main_menu.cljs b/frontend/src/app/main/ui/workspace/main_menu.cljs index f002f90a2..4728c068a 100644 --- a/frontend/src/app/main/ui/workspace/main_menu.cljs +++ b/frontend/src/app/main/ui/workspace/main_menu.cljs @@ -613,23 +613,25 @@ [:span {:class (stl/css :item-name)} (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) - :on-click on-pin-version - :on-key-down on-pin-version-key-down - :id "file-menu-show-version-history"} - [:span {:class (stl/css :item-name)} - (tr "dashboard.create-version-menu")]] + [:> dropdown-menu-item* {:class (stl/css :submenu-item) + :on-click on-pin-version + :on-key-down on-pin-version-key-down + :id "file-menu-show-version-history"} + [:span {:class (stl/css :item-name)} + (tr "dashboard.create-version-menu")]] - [:> 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-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")]] - [:div {:class (stl/css :separator)}] + [:div {:class (stl/css :separator)}]]) [:> dropdown-menu-item* {:class (stl/css :submenu-item) :on-click on-export-shapes