mirror of https://github.com/apache/cloudstack.git
Change UI VM deployment to show SSH keys only if user has keys (#5804)
This commit is contained in:
parent
8ba5b92a83
commit
19325d0286
|
|
@ -391,6 +391,7 @@
|
|||
</template>
|
||||
</a-step>
|
||||
<a-step
|
||||
v-if="isUserAllowedToListSshKeys"
|
||||
:title="this.$t('label.sshkeypairs')"
|
||||
:status="zoneSelected ? 'process' : 'wait'">
|
||||
<template slot="description">
|
||||
|
|
@ -1059,6 +1060,9 @@ export default {
|
|||
showSecurityGroupSection () {
|
||||
return (this.networks.length > 0 && this.zone.securitygroupsenabled) || (this.zone && this.zone.networktype === 'Basic')
|
||||
},
|
||||
isUserAllowedToListSshKeys () {
|
||||
return Boolean('listSSHKeyPairs' in this.$store.getters.apis)
|
||||
},
|
||||
dynamicScalingVmConfigValue () {
|
||||
return this.options.dynamicScalingVmConfig?.[0]?.value === 'true'
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue