mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix Kubernetes cluster listing when user is unable to scale (#9867)
Co-authored-by: Henrique Sato <henrique.sato@scclouds.com.br>
This commit is contained in:
parent
9ae5b6a999
commit
a6e9aec769
@ -537,7 +537,7 @@ export default {
|
||||
if (store.listAllProjects) {
|
||||
fields.push('project')
|
||||
}
|
||||
if (store.apis.scaleKubernetesCluster.params.filter(x => x.name === 'autoscalingenabled').length > 0) {
|
||||
if (store.apis.scaleKubernetesCluster?.params?.filter(x => x.name === 'autoscalingenabled').length > 0) {
|
||||
fields.splice(2, 0, 'autoscalingenabled')
|
||||
}
|
||||
fields.push('zonename')
|
||||
|
||||
@ -278,7 +278,7 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
if (this.$store.getters.apis.scaleKubernetesCluster.params.filter(x => x.name === 'nodeids').length > 0 && this.resource.clustertype === 'CloudManaged') {
|
||||
if (this.$store.getters.apis.scaleKubernetesCluster?.params?.filter(x => x.name === 'nodeids').length > 0 && this.resource.clustertype === 'CloudManaged') {
|
||||
this.vmColumns.push({
|
||||
key: 'actions',
|
||||
title: this.$t('label.actions'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user