Skip to content

Commit d7362dd

Browse files
hsato03Henrique Sato
andauthored
Migrating volumes filter (#8631)
Co-authored-by: Henrique Sato <henrique.sato@scclouds.com.br>
1 parent a924a11 commit d7362dd

File tree

1 file changed

+28
-23
lines changed

1 file changed

+28
-23
lines changed

ui/src/components/view/SearchView.vue

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -603,30 +603,35 @@ export default {
603603
return types
604604
},
605605
fetchState () {
606-
const state = []
607-
if (this.apiName.indexOf('listVolumes') > -1) {
608-
state.push({
609-
id: 'Allocated',
610-
name: 'label.allocated'
611-
})
612-
state.push({
613-
id: 'Ready',
614-
name: 'label.isready'
615-
})
616-
state.push({
617-
id: 'Destroy',
618-
name: 'label.destroy'
619-
})
620-
state.push({
621-
id: 'Expunging',
622-
name: 'label.expunging'
623-
})
624-
state.push({
625-
id: 'Expunged',
626-
name: 'label.expunged'
627-
})
606+
if (this.apiName.includes('listVolumes')) {
607+
return [
608+
{
609+
id: 'Allocated',
610+
name: 'label.allocated'
611+
},
612+
{
613+
id: 'Ready',
614+
name: 'label.isready'
615+
},
616+
{
617+
id: 'Destroy',
618+
name: 'label.destroy'
619+
},
620+
{
621+
id: 'Expunging',
622+
name: 'label.expunging'
623+
},
624+
{
625+
id: 'Expunged',
626+
name: 'label.expunged'
627+
},
628+
{
629+
id: 'Migrating',
630+
name: 'label.migrating'
631+
}
632+
]
628633
}
629-
return state
634+
return []
630635
},
631636
fetchEntityType () {
632637
const entityType = []

0 commit comments

Comments
 (0)