Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix interface details #511

Merged
merged 1 commit into from
Jun 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/dashboard/src/explorer/components/DetailsV2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<TwinDetails :twin="data.twin" :title="node ? 'Node Twin Details' : 'Farm Twin Details'" />
</v-col>

<v-col :cols="screen_max_700.matches ? 12 : screen_max_1200.matches ? 6 : 4" v-if="node && node.interfaces">
<InterfacesDetails :interfaces="node.interfaces" />
<v-col :cols="screen_max_700.matches ? 12 : screen_max_1200.matches ? 6 : 4" v-if="node && interfaces">
<InterfacesDetails :interfaces="interfaces" />
</v-col>
</v-row>
</div>
Expand Down Expand Up @@ -85,6 +85,7 @@ export default class Details extends Vue {

loading = false;
grafanaUrl = "";
interfaces = undefined;

data: any = {};

Expand Down Expand Up @@ -117,6 +118,7 @@ export default class Details extends Vue {
return res;
}, data);
// update with the data from grid proxy
this.interfaces = data.node.interfaces;
if (this.nodeId) {
this.data.node = await fetch(`${window.configs.APP_GRIDPROXY_URL}/nodes/${this.nodeId}`).then(res =>
res.json(),
Expand Down