Commit d44bfa91 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'dropzone-alert-removal' into 'master'

Removes the call to alert from dropzone

Closes #232804

See merge request gitlab-org/gitlab!38170
parents 464be48e a218bf12
...@@ -70,7 +70,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) { ...@@ -70,7 +70,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) {
headers: csrf.headers, headers: csrf.headers,
previewContainer: false, previewContainer: false,
...config, ...config,
processing: () => $('.div-dropzone-alert').alert('close'),
dragover: () => { dragover: () => {
$mdArea.addClass('is-dropzone-hover'); $mdArea.addClass('is-dropzone-hover');
form.find('.div-dropzone-hover').css('opacity', 0.7); form.find('.div-dropzone-hover').css('opacity', 0.7);
...@@ -245,8 +244,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) { ...@@ -245,8 +244,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) {
$uploadingErrorMessage.html(message); $uploadingErrorMessage.html(message);
}; };
const closeAlertMessage = () => form.find('.div-dropzone-alert').alert('close');
const insertToTextArea = (filename, url) => { const insertToTextArea = (filename, url) => {
const $child = $(child); const $child = $(child);
const textarea = $child.get(0); const textarea = $child.get(0);
...@@ -266,7 +263,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) { ...@@ -266,7 +263,6 @@ export default function dropzoneInput(form, config = { parallelUploads: 2 }) {
formData.append('file', item, filename); formData.append('file', item, filename);
showSpinner(); showSpinner();
closeAlertMessage();
axios axios
.post(uploadsPath, formData) .post(uploadsPath, formData)
......
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