Merge pull request #2414 from brkcvn/master
Selected bugfix solved for Single File in Import Page
This commit is contained in:
commit
3fe6d7610b
3
public/css/app.css
vendored
3
public/css/app.css
vendored
@ -6977,6 +6977,9 @@ input[type="date"]::-webkit-inner-spin-button,
|
|||||||
.-mb-2{
|
.-mb-2{
|
||||||
margin-bottom: -0.5rem;
|
margin-bottom: -0.5rem;
|
||||||
}
|
}
|
||||||
|
.-ml-3{
|
||||||
|
margin-left: -0.75rem;
|
||||||
|
}
|
||||||
.box-border{
|
.box-border{
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<img class="avatar-img rounded" data-dz-thumbnail>
|
<img class="avatar-img h-full rounded object-cover" data-dz-thumbnail>
|
||||||
<span class="material-icons hidden" data-dz-thumbnail-image>crop_original</span>
|
<span class="material-icons hidden" data-dz-thumbnail-image>crop_original</span>
|
||||||
<span class="material-icons-outlined display-3 hidden" data-dz-thumbnail-pdf>picture_as_pdf</span>
|
<span class="material-icons-outlined display-3 hidden" data-dz-thumbnail-pdf>picture_as_pdf</span>
|
||||||
<span class="material-icons-outlined hidden" data-dz-thumbnail-word>content_paste</span>
|
<span class="material-icons-outlined hidden" data-dz-thumbnail-word>content_paste</span>
|
||||||
@ -164,6 +164,8 @@ export default {
|
|||||||
file.previewElement.querySelector("[data-dz-thumbnail-image]").classList.remove("hidden");
|
file.previewElement.querySelector("[data-dz-thumbnail-image]").classList.remove("hidden");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
self.onMaxFilesReached(self);
|
||||||
}),
|
}),
|
||||||
|
|
||||||
dropzone.on('removedfile', function (file) {
|
dropzone.on('removedfile', function (file) {
|
||||||
@ -217,11 +219,7 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (self.preview == 'single' && self.attachments.length == 1) {
|
self.onMaxFilesReached(self);
|
||||||
self.$nextTick(() => {
|
|
||||||
document.querySelector("#dropzone-" + self._uid).classList.add("dz-max-files-reached");
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}, 100);
|
}, 100);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -231,6 +229,14 @@ export default {
|
|||||||
|
|
||||||
preview.innerHTML = '';
|
preview.innerHTML = '';
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onMaxFilesReached(arg) {
|
||||||
|
if (arg.preview == 'single' || arg.attachments.length == 1) {
|
||||||
|
arg.$nextTick(() => {
|
||||||
|
document.querySelector("#dropzone-" + arg._uid).classList.add("dz-max-files-reached");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
async mounted() {
|
async mounted() {
|
||||||
@ -262,11 +268,7 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.preview == 'single' && attachments.length == 1) {
|
this.onMaxFilesReached(this);
|
||||||
this.$nextTick(() => {
|
|
||||||
document.querySelector("#dropzone-" + this._uid).classList.add("dz-max-files-reached");
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
<x-slot name="body">
|
<x-slot name="body">
|
||||||
<x-form.group.select name="landing_page" label="{{ trans('auth.landing_page') }}" :options="$landing_pages" selected="dashboard" />
|
<x-form.group.select name="landing_page" label="{!! trans('auth.landing_page') !!}" :options="$landing_pages" selected="dashboard" />
|
||||||
|
|
||||||
<x-form.group.locale />
|
<x-form.group.locale />
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
</x-slot>
|
</x-slot>
|
||||||
|
|
||||||
<x-slot name="body">
|
<x-slot name="body">
|
||||||
<x-form.group.select name="landing_page" label="{{ trans('auth.landing_page') }}" :options="$landing_pages" />
|
<x-form.group.select name="landing_page" label="{!! trans('auth.landing_page') !!}" :options="$landing_pages" />
|
||||||
|
|
||||||
<x-form.group.locale />
|
<x-form.group.locale />
|
||||||
</x-slot>
|
</x-slot>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user