Make instance select clearable

This commit is contained in:
Angelina Filippova 2020-02-03 17:43:20 +03:00
parent 6ecfbb8892
commit 6b94950e1e
2 changed files with 11 additions and 8 deletions

View file

@ -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,

View file

@ -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