feat(quick actions): select the item when only one result is available
resolves #703
This commit is contained in:
parent
a955488cdf
commit
3dfa286a12
1 changed files with 5 additions and 0 deletions
|
@ -354,6 +354,11 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
doCmd() {
|
doCmd() {
|
||||||
|
if (this.results.length === 1 && this.results[0].items.length === 1) {
|
||||||
|
this.doAction(this.results[0].type, this.results[0].items[0])
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (this.selectedCmd === null) {
|
if (this.selectedCmd === null) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue