mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(files_sharing): file request form validity check reset
Signed-off-by: skjnldsv <skjnldsv@protonmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
parent
e84a12c6f6
commit
46d58ce207
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/6372-6372.js.map
vendored
1
dist/6372-6372.js.map
vendored
File diff suppressed because one or more lines are too long
1
dist/6372-6372.js.map.license
vendored
1
dist/6372-6372.js.map.license
vendored
|
|
@ -1 +0,0 @@
|
|||
6372-6372.js.license
|
||||
4
dist/6372-6372.js → dist/8894-8894.js
vendored
4
dist/6372-6372.js → dist/8894-8894.js
vendored
File diff suppressed because one or more lines are too long
1
dist/8894-8894.js.map
vendored
Normal file
1
dist/8894-8894.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/8894-8894.js.map.license
vendored
Symbolic link
1
dist/8894-8894.js.map.license
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
8894-8894.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