Migrating volumes filter (#8631)

Co-authored-by: Henrique Sato <henrique.sato@scclouds.com.br>
This commit is contained in:
Henrique Sato 2024-02-13 02:38:36 -03:00 committed by GitHub
parent a924a110e1
commit d7362dd332
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 28 additions and 23 deletions

View File

@ -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 = []