mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(files_sharing): bring global search in Sharing Input
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
This commit is contained in:
parent
363221fb70
commit
91da36bae4
1 changed files with 13 additions and 1 deletions
|
|
@ -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)
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue