Show the link password when it's set

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
This commit is contained in:
Christoph Wurst 2020-02-19 13:30:42 +01:00 committed by npmbuildbot[bot]
parent d06014353d
commit 699cbeb2fc
5 changed files with 27 additions and 26 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -298,6 +298,7 @@
<script> <script>
import { generateUrl } from '@nextcloud/router' import { generateUrl } from '@nextcloud/router'
import axios from '@nextcloud/axios' import axios from '@nextcloud/axios'
import Vue from 'vue'
import ActionButton from '@nextcloud/vue/dist/Components/ActionButton' import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
import ActionCheckbox from '@nextcloud/vue/dist/Components/ActionCheckbox' import ActionCheckbox from '@nextcloud/vue/dist/Components/ActionCheckbox'
@ -423,8 +424,8 @@ export default {
}, },
set: async function(enabled) { set: async function(enabled) {
// TODO: directly save after generation to make sure the share is always protected // TODO: directly save after generation to make sure the share is always protected
this.share.password = enabled ? await this.generatePassword() : '' Vue.set(this.share, 'password', enabled ? await this.generatePassword() : '')
this.share.newPassword = this.share.password Vue.set(this.share, 'newPassword', this.share.password)
}, },
}, },