aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
diff options
context:
space:
mode:
authorfenn-cs <fenn25.fn@gmail.com>2024-03-14 00:43:10 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2024-03-14 13:41:23 +0100
commit6570f8711e22e6545d7b06a16adc22c5a3ffee43 (patch)
tree7b96f38dea0d5ab050bc335d16791c942480fbca /apps/files_sharing/src
parent9f0028c8d7e61b252b9ce72aac897a14572fa986 (diff)
downloadnextcloud-server-6570f8711e22e6545d7b06a16adc22c5a3ffee43.tar.gz
nextcloud-server-6570f8711e22e6545d7b06a16adc22c5a3ffee43.zip
fix: No password set for new mail shares
Before the password is set on a new share, the computed property `hasUnsavedPassword` is used to check that `this.share.newPassword` is not undefined. Direct assignment without using Vue's `this.$set` makes it impossible for vue to detect that changes have happened on the share object. Hence the inreactivity. This worked initially most likely because `this.share.newPassword = await GeneratePassword()` was executed before the computed properties where evaluated. Resolves : https://github.com/nextcloud/server/issues/43919 Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r--apps/files_sharing/src/views/SharingDetailsTab.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue
index 5214582153c..67680351c92 100644
--- a/apps/files_sharing/src/views/SharingDetailsTab.vue
+++ b/apps/files_sharing/src/views/SharingDetailsTab.vue
@@ -708,7 +708,7 @@ export default {
if (this.isNewShare) {
if (this.isPasswordEnforced && this.isPublicShare) {
- this.share.newPassword = await GeneratePassword()
+ this.$set(this.share, 'newPassword', await GeneratePassword())
this.advancedSectionAccordionExpanded = true
}
/* Set default expiration dates if configured */