diff options
author | fenn-cs <fenn25.fn@gmail.com> | 2024-03-14 00:43:10 +0100 |
---|---|---|
committer | fenn-cs <fenn25.fn@gmail.com> | 2024-03-14 00:59:22 +0100 |
commit | f9bef8f378cfbcb97dbf3796dc83bb5883bf7113 (patch) | |
tree | 3dc29f7d35936af14231cbbca5a9d8967d915b30 /apps/files_sharing/src | |
parent | 078f51beeb89e885c841fe5067994e61c882ba1a (diff) | |
download | nextcloud-server-f9bef8f378cfbcb97dbf3796dc83bb5883bf7113.tar.gz nextcloud-server-f9bef8f378cfbcb97dbf3796dc83bb5883bf7113.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.vue | 2 |
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 b7d87a88b0e..aed735e2abb 100644 --- a/apps/files_sharing/src/views/SharingDetailsTab.vue +++ b/apps/files_sharing/src/views/SharingDetailsTab.vue @@ -752,7 +752,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 */ |