Merge pull request #19542 from nextcloud/fix/link-share-show-password
Show the link password when it's set
This commit is contained in:
commit
e88492e7b8
5 changed files with 3 additions and 2 deletions
BIN
apps/files_sharing/js/dist/files_sharing_tab.js
vendored
BIN
apps/files_sharing/js/dist/files_sharing_tab.js
vendored
Binary file not shown.
BIN
apps/files_sharing/js/dist/files_sharing_tab.js.map
vendored
BIN
apps/files_sharing/js/dist/files_sharing_tab.js.map
vendored
Binary file not shown.
BIN
apps/files_sharing/js/dist/personal-settings.js
vendored
BIN
apps/files_sharing/js/dist/personal-settings.js
vendored
Binary file not shown.
BIN
apps/files_sharing/js/dist/personal-settings.js.map
vendored
BIN
apps/files_sharing/js/dist/personal-settings.js.map
vendored
Binary file not shown.
|
@ -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)
|
||||
},
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue