From edbcbffae4358c99270143af34d13588811797ed Mon Sep 17 00:00:00 2001 From: Anton Date: Mon, 8 Aug 2022 11:26:12 +0200 Subject: [PATCH] Fix protocol creation from dashboard [SCI-7075] --- app/assets/stylesheets/dashboard/show.scss | 9 +++++++++ app/views/dashboards/_quick_start.html.erb | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/dashboard/show.scss b/app/assets/stylesheets/dashboard/show.scss index 58919d3a8..5e2666680 100644 --- a/app/assets/stylesheets/dashboard/show.scss +++ b/app/assets/stylesheets/dashboard/show.scss @@ -83,6 +83,15 @@ } } + +.quick-start-buttons { + display: flex; + + .btn { + margin-right: .25em; + } +} + @media (max-width: 1100px) { .dashboard-container { --dashboard-widgets-gap: 15px; diff --git a/app/views/dashboards/_quick_start.html.erb b/app/views/dashboards/_quick_start.html.erb index eabe06fce..6a7d7316a 100644 --- a/app/views/dashboards/_quick_start.html.erb +++ b/app/views/dashboards/_quick_start.html.erb @@ -1,7 +1,7 @@ <% unless current_user.is_guest_of_team?(current_team) %>
<%= t("dashboard.quick_start.new_task") %>
- <%= link_to protocols_path, {class: "new-protocol btn btn-secondary"} do %> + <%= button_to protocols_path(type: :in_repository_public), disabled: !can_create_protocols_in_repository?(@current_team), class: 'btn btn-secondary' do %> <%= t("dashboard.quick_start.new_protocol") %> <% end %> <%= link_to new_report_path, {class: "new-report btn btn-secondary"} do %>