diff --git a/src/views/entityExplorer/EntityGraph.vue b/src/views/entityExplorer/EntityGraph.vue index 73c9df38..7ad58692 100644 --- a/src/views/entityExplorer/EntityGraph.vue +++ b/src/views/entityExplorer/EntityGraph.vue @@ -22,6 +22,8 @@
-
{{entityTypeName}}
+
{{currentEntityType}}
-
{{ $_.get(node, 'realId', '') }}
+
{{title}}
@@ -110,6 +110,12 @@ export default { node: { type: Object }, + currentEntityType: { + type: String + }, + title: { + type: String + }, loading: { type: Boolean } @@ -126,7 +132,7 @@ export default { computed: { iconClass () { let className - switch (_.get(this.node, 'data.entityType', '')) { + switch (this.currentEntityType) { case ('ip'): { className = 'cn-icon cn-icon-resolve-ip' break @@ -145,9 +151,8 @@ export default { return className }, entityTypeName () { - const type = _.get(this.node, 'data.entityType', '') let entityTypeName = '-' - switch (type) { + switch (this.entityType) { case ('ip'): { entityTypeName = 'IP' break