mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-01 03:36:04 +08:00
feat: add VPC network topology in detail page (#721)
* feat: add topology Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com> * feat: add provider info Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com> * refactor: remove comments Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com> * fix: exclude default network Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com> * feat: add VPC peering Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com> * refactor: remove regex Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com> * refactor: adjust row height Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com> * feat: introduce auto layout Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com> --------- Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
@@ -155,6 +155,15 @@ export default {
|
||||
return location;
|
||||
},
|
||||
|
||||
viewTopology(group) {
|
||||
const vpc = group.key;
|
||||
const resource = this.$store.getters[`harvester/byId`](HCI.VPC, vpc);
|
||||
|
||||
if (resource && resource.goToDetail) {
|
||||
resource.goToDetail();
|
||||
}
|
||||
},
|
||||
|
||||
showVpcAction(event, group) {
|
||||
const vpc = group.key;
|
||||
|
||||
@@ -218,6 +227,14 @@ export default {
|
||||
>
|
||||
{{ t('harvester.vpc.createSubnet') }}
|
||||
</router-link>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm role-secondary mr-5"
|
||||
@click="viewTopology(group)"
|
||||
>
|
||||
<i class="icon icon-globe mr-5" />
|
||||
{{ t('harvester.vpc.viewTopology') }}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-sm role-multi-action actions mr-10"
|
||||
|
||||
Reference in New Issue
Block a user