mirror of https://github.com/apache/cloudstack.git
Migrating volumes filter (#8631)
Co-authored-by: Henrique Sato <henrique.sato@scclouds.com.br>
This commit is contained in:
parent
a924a110e1
commit
d7362dd332
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Reference in New Issue