mirror of https://github.com/apache/cloudstack.git
ui: fix zone icon in vm deploy zone selection (#6543)
* ui: fix zone icon in vm deploy zone selection Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * unnecessary conditions Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
This commit is contained in:
parent
600d81e345
commit
764ee30ecc
|
|
@ -43,6 +43,10 @@ export default {
|
|||
}
|
||||
},
|
||||
getDimensions () {
|
||||
const num = Number(this.size)
|
||||
if (Number.isInteger(num) && num > 0) {
|
||||
return num
|
||||
}
|
||||
switch (this.size) {
|
||||
case '4x':
|
||||
return 56
|
||||
|
|
|
|||
|
|
@ -45,12 +45,11 @@
|
|||
<a-card-grid style="width:200px;" :title="zoneItem.name" :hoverable="false">
|
||||
<a-radio :value="zoneItem.id">
|
||||
<div>
|
||||
<img
|
||||
<resource-icon
|
||||
v-if="zoneItem && zoneItem.icon && zoneItem.icon.base64image"
|
||||
:src="getImg(zoneItem.icon.base64image)"
|
||||
style="marginTop: -30px; marginLeft: 60px"
|
||||
width="36px"
|
||||
height="36px" />
|
||||
:image="zoneItem.icon.base64image"
|
||||
size="36"
|
||||
style="marginTop: -30px; marginLeft: 60px" />
|
||||
<global-outlined v-else :style="{fontSize: '36px', marginLeft: '60px', marginTop: '-40px'}"/>
|
||||
</div>
|
||||
</a-radio>
|
||||
|
|
@ -1487,9 +1486,6 @@ export default {
|
|||
'maxmemory' in serviceOffering.serviceofferingdetails && 'maxcpunumber' in serviceOffering.serviceofferingdetails &&
|
||||
'minmemory' in serviceOffering.serviceofferingdetails
|
||||
},
|
||||
getImg (image) {
|
||||
return 'data:image/png;charset=utf-8;base64, ' + image
|
||||
},
|
||||
updateOverrideRootDiskShowParam (val) {
|
||||
if (val) {
|
||||
this.showRootDiskSizeChanger = false
|
||||
|
|
|
|||
Loading…
Reference in New Issue