Browse Source

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

pull/50576/head
John Molakvoæ 9 months ago
committed by GitHub
parent
commit
af8189f820
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 13
      apps/files_sharing/src/components/NewFileRequestDialog.vue
  2. 1
      dist/1191-1191.js.map
  3. 1
      dist/1191-1191.js.map.license
  4. 4
      dist/9835-9835.js
  5. 0
      dist/9835-9835.js.license
  6. 1
      dist/9835-9835.js.map
  7. 1
      dist/9835-9835.js.map.license
  8. 4
      dist/files_sharing-init.js
  9. 2
      dist/files_sharing-init.js.map

13
apps/files_sharing/src/components/NewFileRequestDialog.vue

@ -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
File diff suppressed because it is too large
View File

1
dist/1191-1191.js.map.license

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

4
dist/9835-9835.js
File diff suppressed because it is too large
View File

0
dist/1191-1191.js.license → dist/9835-9835.js.license

1
dist/9835-9835.js.map
File diff suppressed because it is too large
View File

1
dist/9835-9835.js.map.license

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

4
dist/files_sharing-init.js
File diff suppressed because it is too large
View File

2
dist/files_sharing-init.js.map
File diff suppressed because it is too large
View File

Loading…
Cancel
Save