summaryrefslogtreecommitdiff
path: root/app/views/projects/merge_requests/conflicts/components/_diff_file_editor.html.haml
blob: 7294c5d321ac0784555def916b03c907dede9b96 (plain)
1
2
3
4
5
6
7
8
9
10
%diff-file-editor{ "inline-template" => "true", ":file" => "file", ":on-cancel-discard-confirmation" => "cancelDiscardConfirmation", ":on-accept-discard-confirmation" => "acceptDiscardConfirmation" }
  .diff-editor-wrap{ "v-show" => "file.showEditor" }
    .discard-changes-alert-wrap{ "v-if" => "file.promptDiscardConfirmation" }
      .discard-changes-alert
        Are you sure you want to discard your changes?
        .discard-actions
          %button.btn.btn-sm.btn-close{ "@click" => "acceptDiscardConfirmation(file)" } Discard changes
          %button.btn.btn-sm{ "@click" => "cancelDiscardConfirmation(file)" } Cancel
    .editor-wrap{ ":class" => "classObject" }
      .editor{ "style" => "height: 350px", data: { 'editor-loading': true } }