Skip to content

Commit f4a3986

Browse files
pbankonierrohityadavcloud
authored andcommitted
bug: fix console error (#6)
Small changes to remove some console errors that currently occur. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 1bbca4b commit f4a3986

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

ui/src/components/tools/UserMenu.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
<a-icon type="setting"/>
2626
<span>测试</span>
2727
</a-menu-item>
28-
<a-menu-item key="2" disabled>
28+
<a-menu-item key="3" disabled>
2929
<a :href="helpUrl" target="_blank">
3030
<a-icon type="question-circle-o"></a-icon>
3131
<span>Help</span>
3232
</a>
3333
</a-menu-item>
3434
<a-menu-divider/>
35-
<a-menu-item key="3">
35+
<a-menu-item key="4">
3636
<a href="javascript:;" @click="handleLogout">
3737
<a-icon type="logout"/>
3838
<span>Logout</span>

ui/src/views/dashboard/Dashboard.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
<script>
1313
import store from '@/store'
14-
import { mapState } from 'vuex'
1514
import CapacityDashboard from './CapacityDashboard'
1615
import UsageDashboard from './UsageDashboard'
1716
@@ -27,7 +26,6 @@ export default {
2726
project: false
2827
}
2928
},
30-
computed: mapState(['project']),
3129
mounted () {
3230
this.showCapacityDashboard = store.getters.apis.hasOwnProperty('listCapacity')
3331
this.project = store.getters.project !== undefined && store.getters.project.id !== undefined

ui/src/views/dashboard/UsageDashboard.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default {
7979
api('listVirtualMachines', { listall: true }).then(json => {
8080
var count = 0
8181
if (json && json.listvirtualmachinesresponse) {
82-
count = json.listnetworksresponse.count
82+
count = json.listvirtualmachinesresponse.count
8383
}
8484
this.stats.push({ name: 'Total VMs', count: count })
8585
})

0 commit comments

Comments
 (0)