Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-01-09 22:41:08 +0300
committerJoas Schilling <coding@schilljs.com>2020-01-09 22:41:08 +0300
commitafad3154a4a25e8f43f45b655f4c01be5a703dcb (patch)
tree2e3545fbeb02c5a285515f1e21ed2d12f793fbba /src
parent0a9cdace2ed86b08d5c4f826059db66b72551900 (diff)
Show also matches by id not only display name
The vue-at library only searches in the display name by default. But luckily our server responds already only with matching items, so we just filter none and show them all. Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r--src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue b/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue
index fb26019ae..dc4ee164f 100644
--- a/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue
+++ b/src/components/NewMessageForm/AdvancedInput/AdvancedInput.vue
@@ -24,6 +24,7 @@
v-model="text"
name-key="label"
:members="autoCompleteMentionCandidates"
+ :filter-match="atFilter"
@at="handleAtEvent">
<template v-slot:item="scope">
<Avatar v-if="isMentionToAll(scope.item.id)"
@@ -158,6 +159,16 @@ export default {
},
/**
+ * The vue-at library only searches in the display name by default.
+ * But luckily our server responds already only with matching items,
+ * so we just filter none and show them all.
+ * @returns {boolean} True as we never filter anything out
+ */
+ atFilter() {
+ return true
+ },
+
+ /**
* Focuses the contenteditable div input
*/
focusInput() {