Skip to content

Commit 801675d

Browse files
luka-nextcloudnextcloud-command
authored andcommitted
fix(files_sharing): add missing subtitle on search for share recipients
Signed-off-by: Luka Trovic <luka@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 6ec72ce commit 801675d

File tree

100 files changed

+156
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+156
-154
lines changed

apps/files_sharing/src/components/SharingInput.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -438,17 +438,17 @@ export default {
438438
* @return {object}
439439
*/
440440
formatForMultiselect(result) {
441-
let subtitle
441+
let subname
442442
if (result.value.shareType === this.SHARE_TYPES.SHARE_TYPE_USER && this.config.shouldAlwaysShowUnique) {
443-
subtitle = result.shareWithDisplayNameUnique ?? ''
443+
subname = result.shareWithDisplayNameUnique ?? ''
444444
} else if ((result.value.shareType === this.SHARE_TYPES.SHARE_TYPE_REMOTE
445445
|| result.value.shareType === this.SHARE_TYPES.SHARE_TYPE_REMOTE_GROUP
446446
) && result.value.server) {
447-
subtitle = t('files_sharing', 'on {server}', { server: result.value.server })
447+
subname = t('files_sharing', 'on {server}', { server: result.value.server })
448448
} else if (result.value.shareType === this.SHARE_TYPES.SHARE_TYPE_EMAIL) {
449-
subtitle = result.value.shareWith
449+
subname = result.value.shareWith
450450
} else {
451-
subtitle = result.shareWithDescription ?? ''
451+
subname = result.shareWithDescription ?? ''
452452
}
453453
454454
return {
@@ -457,7 +457,7 @@ export default {
457457
user: result.uuid || result.value.shareWith,
458458
isNoUser: result.value.shareType !== this.SHARE_TYPES.SHARE_TYPE_USER,
459459
displayName: result.name || result.label,
460-
subtitle,
460+
subname,
461461
shareWithDisplayNameUnique: result.shareWithDisplayNameUnique || '',
462462
...this.shareTypeToIcon(result.value.shareType),
463463
}

dist/3777-3777.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/3777-3777.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/4065-4065.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/4065-4065.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/5519-5519.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/5528-5528.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/8985-8985.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)