aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/components/SharingEntryLink.vue
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-02-23 16:21:27 +0100
committerGitHub <noreply@github.com>2020-02-23 16:21:27 +0100
commite88492e7b829d696e86b5f1ce883e7f4e9cac6e9 (patch)
tree424c55bcb58ff90374d1dd97d8291ea3ebb15368 /apps/files_sharing/src/components/SharingEntryLink.vue
parentd06014353d2ebf53d1aceac22c44ad5c6a5e3165 (diff)
parent699cbeb2fcc0f6bbaa12234e965900a5b27d52d2 (diff)
downloadnextcloud-server-e88492e7b829d696e86b5f1ce883e7f4e9cac6e9.tar.gz
nextcloud-server-e88492e7b829d696e86b5f1ce883e7f4e9cac6e9.zip
Merge pull request #19542 from nextcloud/fix/link-share-show-password
Show the link password when it's set
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntryLink.vue')
-rw-r--r--apps/files_sharing/src/components/SharingEntryLink.vue5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue
index e2c1ec63364..c7771cc8104 100644
--- a/apps/files_sharing/src/components/SharingEntryLink.vue
+++ b/apps/files_sharing/src/components/SharingEntryLink.vue
@@ -298,6 +298,7 @@
<script>
import { generateUrl } from '@nextcloud/router'
import axios from '@nextcloud/axios'
+import Vue from 'vue'
import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
import ActionCheckbox from '@nextcloud/vue/dist/Components/ActionCheckbox'
@@ -423,8 +424,8 @@ export default {
},
set: async function(enabled) {
// TODO: directly save after generation to make sure the share is always protected
- this.share.password = enabled ? await this.generatePassword() : ''
- this.share.newPassword = this.share.password
+ Vue.set(this.share, 'password', enabled ? await this.generatePassword() : '')
+ Vue.set(this.share, 'newPassword', this.share.password)
},
},