commit
7dc36156c2
8 changed files with 22 additions and 11 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.
|
@ -242,9 +242,10 @@
|
||||||
}"
|
}"
|
||||||
:class="{ error: errors.note}"
|
:class="{ error: errors.note}"
|
||||||
:disabled="saving"
|
:disabled="saving"
|
||||||
:value.sync="share.note"
|
:placeholder="t('files_sharing', 'Enter a note for the share recipient')"
|
||||||
|
:value="share.note"
|
||||||
icon="icon-edit"
|
icon="icon-edit"
|
||||||
@update:value="debounceQueueUpdate('note')" />
|
@update:value="onNoteChange" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- external sharing via url (social...) -->
|
<!-- external sharing via url (social...) -->
|
||||||
|
@ -733,7 +734,7 @@ export default {
|
||||||
*/
|
*/
|
||||||
onPasswordSubmit() {
|
onPasswordSubmit() {
|
||||||
if (this.hasUnsavedPassword) {
|
if (this.hasUnsavedPassword) {
|
||||||
this.share.password = this.share.newPassword
|
this.share.password = this.share.newPassword.trim()
|
||||||
this.queueUpdate('password')
|
this.queueUpdate('password')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -88,12 +88,12 @@ export default {
|
||||||
*/
|
*/
|
||||||
hasNote: {
|
hasNote: {
|
||||||
get: function() {
|
get: function() {
|
||||||
return !!this.share.note
|
return this.share.note !== ''
|
||||||
},
|
},
|
||||||
set: function(enabled) {
|
set: function(enabled) {
|
||||||
this.share.note = enabled
|
this.share.note = enabled
|
||||||
? t('files_sharing', 'Enter a note for the share recipient')
|
? null // enabled but user did not changed the content yet
|
||||||
: ''
|
: '' // empty = no note = disabled
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -182,6 +182,16 @@ export default {
|
||||||
this.queueUpdate('expireDate')
|
this.queueUpdate('expireDate')
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* When the note change, we trim, save and dispatch
|
||||||
|
*
|
||||||
|
* @param {string} note the note
|
||||||
|
*/
|
||||||
|
onNoteChange: debounce(function(note) {
|
||||||
|
this.share.note = note.trim()
|
||||||
|
this.queueUpdate('note')
|
||||||
|
}, 500),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete share button handler
|
* Delete share button handler
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -250,7 +250,7 @@ export default class Share {
|
||||||
* @memberof Share
|
* @memberof Share
|
||||||
*/
|
*/
|
||||||
set note(note) {
|
set note(note) {
|
||||||
this.#share.note = note.trim()
|
this.#share.note = note
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -303,7 +303,7 @@ export default class Share {
|
||||||
* @memberof Share
|
* @memberof Share
|
||||||
*/
|
*/
|
||||||
set password(password) {
|
set password(password) {
|
||||||
this.#share.password = password.trim()
|
this.#share.password = password
|
||||||
}
|
}
|
||||||
|
|
||||||
// SHARED ITEM DATA ---------------------------------------------
|
// SHARED ITEM DATA ---------------------------------------------
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ul class="sharing-link-list" v-if="canLinkShare">
|
<ul v-if="canLinkShare" class="sharing-link-list">
|
||||||
<!-- If no link shares, show the add link default entry -->
|
<!-- If no link shares, show the add link default entry -->
|
||||||
<SharingEntryLink v-if="!hasLinkShares && canReshare"
|
<SharingEntryLink v-if="!hasLinkShares && canReshare"
|
||||||
:can-reshare="canReshare"
|
:can-reshare="canReshare"
|
||||||
|
|
Loading…
Reference in a new issue