From 945cc70fdf8986424e41b5635ca83337466ed482 Mon Sep 17 00:00:00 2001 From: Henrique Sato Date: Tue, 26 Dec 2023 15:31:19 -0300 Subject: [PATCH] Migrating volumes filter --- ui/src/components/view/SearchView.vue | 51 +++++++++++++++------------ 1 file changed, 28 insertions(+), 23 deletions(-) diff --git a/ui/src/components/view/SearchView.vue b/ui/src/components/view/SearchView.vue index 8e5e00887659..87596da66cc5 100644 --- a/ui/src/components/view/SearchView.vue +++ b/ui/src/components/view/SearchView.vue @@ -603,30 +603,35 @@ export default { return types }, fetchState () { - const state = [] - if (this.apiName.indexOf('listVolumes') > -1) { - state.push({ - id: 'Allocated', - name: 'label.allocated' - }) - state.push({ - id: 'Ready', - name: 'label.isready' - }) - state.push({ - id: 'Destroy', - name: 'label.destroy' - }) - state.push({ - id: 'Expunging', - name: 'label.expunging' - }) - state.push({ - id: 'Expunged', - name: 'label.expunged' - }) + if (this.apiName.includes('listVolumes')) { + return [ + { + id: 'Allocated', + name: 'label.allocated' + }, + { + id: 'Ready', + name: 'label.isready' + }, + { + id: 'Destroy', + name: 'label.destroy' + }, + { + id: 'Expunging', + name: 'label.expunging' + }, + { + id: 'Expunged', + name: 'label.expunged' + }, + { + id: 'Migrating', + name: 'label.migrating' + } + ] } - return state + return [] }, fetchEntityType () { const entityType = []