Merge pull request #50524 from nextcloud/fix/destination-drop-check

This commit is contained in:
John Molakvoæ 2025-01-30 13:07:28 +01:00 committed by GitHub
commit af8189f820
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 16 additions and 11 deletions

View file

@ -218,10 +218,9 @@ export default defineComponent({
methods: {
onPageNext() {
const form = this.$refs.form as HTMLFormElement
if (!form.checkValidity()) {
form.reportValidity()
return
}
// Reset custom validity
form.querySelectorAll('input').forEach(input => input.setCustomValidity(''))
// custom destination validation
// cannot share root
@ -232,6 +231,12 @@ export default defineComponent({
return
}
// If the form is not valid, show the error message
if (!form.checkValidity()) {
form.reportValidity()
return
}
if (this.currentStep === STEP.FIRST) {
this.currentStep = STEP.SECOND
return

File diff suppressed because one or more lines are too long

View file

@ -1 +0,0 @@
1191-1191.js.license

File diff suppressed because one or more lines are too long

1
dist/9835-9835.js.map vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/9835-9835.js.map.license vendored Symbolic link
View file

@ -0,0 +1 @@
9835-9835.js.license

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long