Commit 0a7d47df authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Remove old haml modal

parent 4c6fe280
......@@ -53,7 +53,6 @@ export default {
};
</script>
<template>
<!-- v-bind="$attrs" -->
<gl-modal
:visible="isVisible"
:modal-id="modalId"
......
......@@ -296,7 +296,7 @@ export default {
</gl-sprintf>
</gl-modal>
<confirm-fork-modal
v-if="showWebIdeButton"
v-if="showWebIdeButton || showEditButton"
:is-visible="isForkModalOpen"
:modal-id="forkModalId"
:fork-path="forkPath"
......
......@@ -176,14 +176,14 @@ module TreeHelper
end
def fork_modal_options(project, ref, path, blob)
if show_web_ide_button?
return { fork_path: ide_fork_and_edit_path(project, ref, path), fork_modal_id: "modal-confirm-fork-webide" }
end
if show_edit_button?({ blob: blob })
return { fork_path: fork_and_edit_path(project, ref, path), fork_modal_id: "modal-confirm-fork-edit" }
end
if show_web_ide_button?
return { fork_path: ide_fork_and_edit_path(project, ref, path), fork_modal_id: "modal-confirm-fork-webide" }
end
{}
end
......
.modal{ data: { qa_selector: 'confirm_fork_modal'}, id: "modal-confirm-fork-#{type}" }
.modal-dialog
.modal-content
.modal-header
%h3.page-title= _('Fork project?')
%button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
%span{ "aria-hidden": "true" } &times;
.modal-body.p-3
%p= _("You can’t %{tag_start}edit%{tag_end} files directly in this project. Fork this project and submit a merge request with your changes.") % { tag_start: '', tag_end: ''}
.modal-footer
= link_to _('Cancel'), '#', class: "btn gl-button btn-default", "data-dismiss" => "modal"
= link_to _('Fork project'), fork_path, class: 'btn gl-button btn-confirm', data: { qa_selector: 'fork_project_button' }, method: :post
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment