summaryrefslogtreecommitdiff
path: root/app/views/projects/merge_requests/conflicts/components/_diff_file_editor.html.haml
blob: 3c927d362c28612641a7cc4bda453544b861dde2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%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" }
      .loading
        %i.fa.fa-spinner.fa-spin
      .editor
        %pre{ "style" => "height: 350px" }