Make instance select clearable
This commit is contained in:
parent
6ecfbb8892
commit
6b94950e1e
2 changed files with 11 additions and 8 deletions
|
@ -54,7 +54,9 @@ const status = {
|
||||||
},
|
},
|
||||||
async FetchStatusesByInstance({ commit, getters, state }) {
|
async FetchStatusesByInstance({ commit, getters, state }) {
|
||||||
commit('SET_LOADING', true)
|
commit('SET_LOADING', true)
|
||||||
const statuses = await fetchStatusesByInstance(
|
const statuses = state.statusesByInstance.selectedInstance === ''
|
||||||
|
? { data: [] }
|
||||||
|
: await fetchStatusesByInstance(
|
||||||
{
|
{
|
||||||
instance: state.statusesByInstance.selectedInstance,
|
instance: state.statusesByInstance.selectedInstance,
|
||||||
authHost: getters.authHost,
|
authHost: getters.authHost,
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
:placeholder="$t('statuses.instanceFilter')"
|
:placeholder="$t('statuses.instanceFilter')"
|
||||||
:no-data-text="$t('statuses.noInstances')"
|
:no-data-text="$t('statuses.noInstances')"
|
||||||
filterable
|
filterable
|
||||||
|
clearable
|
||||||
class="select-instance"
|
class="select-instance"
|
||||||
@change="handleFilterChange">
|
@change="handleFilterChange">
|
||||||
<el-option
|
<el-option
|
||||||
|
|
Loading…
Reference in a new issue