52
52
</LinkButton >
53
53
<LinkButton
54
54
class =" table-item link"
55
- :to =" `${middlewareUrl} /status`"
55
+ :to =" `${nodeUrl}/v3 /status`"
56
56
>
57
57
<div class =" name" >
58
58
{{ $t('pages.about.node-version') }}
59
59
</div >
60
60
<div class =" value" >
61
- {{ middlewareStatus.nodeVersion }}
61
+ {{ nodeStatus.node_version }}
62
62
<ExternalLink class =" compensate-icon-margin" />
63
63
</div >
64
64
</LinkButton >
@@ -98,6 +98,7 @@ import { BUG_REPORT_URL, AGGREGATOR_URL } from '@/constants';
98
98
import { useMiddleware } from ' @/composables' ;
99
99
import { AE_COMMIT_URL } from ' @/protocols/aeternity/config' ;
100
100
import { useAeNetworkSettings } from ' @/protocols/aeternity/composables' ;
101
+ import { fetchJson } from ' @/utils' ;
101
102
102
103
import LinkButton from ' @/popup/components/LinkButton.vue' ;
103
104
import PanelItem from ' ../components/PanelItem.vue' ;
@@ -118,11 +119,16 @@ export default defineComponent({
118
119
const { fetchMiddlewareStatus } = useMiddleware ();
119
120
120
121
const middlewareStatus = ref <IMiddlewareStatus >();
122
+ const nodeStatus = ref (null );
121
123
122
124
const middlewareUrl = computed (() => aeActiveNetworkSettings .value .middlewareUrl );
125
+ const nodeUrl = computed (() => aeActiveNetworkSettings .value .nodeUrl );
123
126
124
127
onMounted (async () => {
125
- middlewareStatus .value = await fetchMiddlewareStatus ();
128
+ [middlewareStatus .value , nodeStatus .value ] = await Promise .all ([
129
+ fetchMiddlewareStatus (),
130
+ fetchJson (` ${nodeUrl .value }/v3/status ` ),
131
+ ]);
126
132
});
127
133
128
134
return {
@@ -135,6 +141,8 @@ export default defineComponent({
135
141
sdkVersion: process .env .SDK_VERSION ,
136
142
middlewareStatus ,
137
143
middlewareUrl ,
144
+ nodeStatus ,
145
+ nodeUrl ,
138
146
};
139
147
},
140
148
});
0 commit comments