mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 17:18:48 -04:00
Merge pull request #50524 from nextcloud/fix/destination-drop-check
This commit is contained in:
commit
af8189f820
9 changed files with 16 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
1
dist/1191-1191.js.map
vendored
1
dist/1191-1191.js.map
vendored
File diff suppressed because one or more lines are too long
1
dist/1191-1191.js.map.license
vendored
1
dist/1191-1191.js.map.license
vendored
|
|
@ -1 +0,0 @@
|
|||
1191-1191.js.license
|
||||
4
dist/1191-1191.js → dist/9835-9835.js
vendored
4
dist/1191-1191.js → dist/9835-9835.js
vendored
File diff suppressed because one or more lines are too long
1
dist/9835-9835.js.map
vendored
Normal file
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
1
dist/9835-9835.js.map.license
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
9835-9835.js.license
|
||||
4
dist/files_sharing-init.js
vendored
4
dist/files_sharing-init.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-init.js.map
vendored
2
dist/files_sharing-init.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue