mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 23:03:00 -04:00
Clear the input after adding a new share
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
parent
c47e79fc67
commit
5e519fe17a
1 changed files with 6 additions and 3 deletions
|
|
@ -449,9 +449,6 @@ export default {
|
|||
return true
|
||||
}
|
||||
|
||||
// TODO: reset the search string when done
|
||||
// https://github.com/shentao/vue-multiselect/issues/633
|
||||
|
||||
// handle externalResults from OCA.Sharing.ShareSearch
|
||||
if (value.handler) {
|
||||
const share = await value.handler(this)
|
||||
|
|
@ -494,6 +491,12 @@ export default {
|
|||
this.$emit('add:share', share)
|
||||
}
|
||||
|
||||
// reset the search string when done
|
||||
// FIXME: https://github.com/shentao/vue-multiselect/issues/633
|
||||
if (this.$refs.multiselect?.$refs?.VueMultiselect?.search) {
|
||||
this.$refs.multiselect.$refs.VueMultiselect.search = ''
|
||||
}
|
||||
|
||||
await this.getRecommendations()
|
||||
} catch (error) {
|
||||
// focus back if any error
|
||||
|
|
|
|||
Loading…
Reference in a new issue