components: minor fixes

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2020-02-10 14:54:36 +05:30
parent 9d39bc8de5
commit 9ec5a60642
2 changed files with 4 additions and 11 deletions

View File

@ -96,6 +96,9 @@
<template slot="state" slot-scope="text">
<status :text="text ? text : ''" displayText />
</template>
<template slot="agentstate" slot-scope="text">
<status :text="text ? text : ''" displayText />
</template>
<a slot="guestnetworkname" slot-scope="text, record" href="javascript:;">
<router-link :to="{ path: '/guestnetwork/' + record.guestnetworkid }">{{ text }}</router-link>
</a>

View File

@ -86,8 +86,7 @@ export default {
data () {
return {
activeTab: '',
networkService: null,
vpnEnabled: false
networkService: null
}
},
watch: {
@ -100,15 +99,6 @@ export default {
this.networkService = response.listnetworksresponse.network[0]
})
}
if (this.resource.id && this.resource.ipaddress) {
api('listRemoteAccessVpns', {
publicipid: this.resource.id,
listAll: true
}).then(response => {
this.vpnEnabled = response.listremoteaccessvpnsresponse.remoteaccessvpn && response.listremoteaccessvpnsresponse.remoteaccessvpn.length > 0
})
}
}
},
methods: {