diff --git a/ui/src/components/CloudMonkey/Resource.vue b/ui/src/components/CloudMonkey/Resource.vue
index 694fea2e1fb..7883ce310c6 100644
--- a/ui/src/components/CloudMonkey/Resource.vue
+++ b/ui/src/components/CloudMonkey/Resource.vue
@@ -50,7 +50,7 @@
:loading="loading"
:checked="autoRefresh"
@change="toggleAutoRefresh"
- />
+ />
@@ -82,12 +82,13 @@
{{ "Auto-Refresh" }}
-
+ />
+ >
-
-
- {{ vm.instancename }}
+
+ {{ vm.instancename }}
@@ -26,7 +28,7 @@
Zone: {{ vm.zonename }}
IP Addresses:
- -
+
-
{{ eth.ipaddress }} ({{ eth.networkname }})
@@ -57,7 +59,7 @@
itemLayout="horizontal"
:dataSource="volumes"
>
-
+
{{ item.name }}
@@ -77,16 +79,15 @@
-
-
+
- {{item.ipaddress}} (Default)
+ {{ item.ipaddress }} (Default)
@@ -106,7 +107,6 @@
-
@@ -123,8 +123,7 @@ export default {
props: {
vm: {
type: Object,
- required: true,
- default: {}
+ required: true
}
},
data () {
@@ -140,7 +139,7 @@ export default {
}
},
methods: {
- fetchData() {
+ fetchData () {
api('listVolumes', { 'listall': true, 'virtualmachineid': this.vm.id }).then(json => {
this.volumes = json.listvolumesresponse.volume
this.totalStorage = 0
diff --git a/ui/src/config/section/compute.js b/ui/src/config/section/compute.js
index ae06a31f197..b9e97defb22 100644
--- a/ui/src/config/section/compute.js
+++ b/ui/src/config/section/compute.js
@@ -53,7 +53,7 @@ export default {
icon: 'sync',
label: 'Reboot VM',
dataView: true,
- hidden: (record) => { return record.state !== 'Running' },
+ hidden: (record) => { return record.state !== 'Running' }
},
{
api: 'restoreVirtualMachine',