Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(files_sharing): bring global search in Sharing Input
Signed-off-by: Grigorii K. Shartsev <[email protected]>
  • Loading branch information
ShGKme committed Jun 21, 2024
commit 91da36bae43c71ff3de9bc046c82ad9413b6b1b1
14 changes: 13 additions & 1 deletion apps/files_sharing/src/components/SharingInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,20 @@ export default {
},

methods: {
onSelected(option) {
async onSelected(option) {
this.value = null // Reset selected option

// Not a real option, but a lookup = global search button
if (option.lookup) {
await this.getSuggestions(this.query, true)
// Wait until select is re-rendered with new options
await this.$nextTick()
// Open the select again
this.$refs.select.$children[0].open = true

return
}

this.openSharingDetails(option)
},

Expand Down