diff options
Diffstat (limited to 'app/views/shared/milestones/_delete_button.html.haml')
-rw-r--r-- | app/views/shared/milestones/_delete_button.html.haml | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/views/shared/milestones/_delete_button.html.haml b/app/views/shared/milestones/_delete_button.html.haml index 432d2efc36e..caab7710fa8 100644 --- a/app/views/shared/milestones/_delete_button.html.haml +++ b/app/views/shared/milestones/_delete_button.html.haml @@ -1,8 +1,6 @@ - milestone_url = @milestone.project_milestone? ? project_milestone_path(@project, @milestone) : group_milestone_path(@group, @milestone) -= render Pajamas::ButtonComponent.new(variant: :danger, - button_options: { class: 'js-delete-milestone-button btn-grouped', data: { milestone_id: @milestone.id, milestone_title: markdown_field(@milestone, :title), milestone_url: milestone_url, milestone_issue_count: @milestone.issues.count, milestone_merge_request_count: @milestone.merge_requests.count }, disabled: true }) do - = gl_loading_icon(inline: true, css_class: "gl-mr-2 js-loading-icon hidden") - = _('Delete') - +%button.gl-button.btn.btn-link.menu-item.js-delete-milestone-button{ data: { milestone_id: @milestone.id, milestone_title: markdown_field(@milestone, :title), milestone_url: milestone_url, milestone_issue_count: @milestone.issues.count, milestone_merge_request_count: @milestone.merge_requests.count }, disabled: true } + .gl-dropdown-item-text-wrapper.gl-text-red-500 + = _('Delete') #js-delete-milestone-modal |