Skip to content

Commit

Permalink
Merge pull request #969 from Senyoret1/build-tag-ui
Browse files Browse the repository at this point in the history
Add the build tag to the UI
  • Loading branch information
jdknives authored Oct 26, 2021
2 parents 0f69d02 + 468a0b2 commit 721edcd
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions static/skywire-manager-src/src/app/app.datatypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export class Node {
dmsgServerPk?: string;
roundTripPing?: string;
isHypervisor?: boolean;
buildTag: string;
skybianBuildVersion?: string;
autoconnectTransports: boolean;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@
{{ node.version ? node.version : ('common.unknown' | translate) }}
</span>
<span class="info-line">
<span class="title">{{ 'node.details.node-info.build-type' | translate }}</span>
{{ node.buildTag ? node.buildTag : ('node.details.node-info.unknown-build' | translate) }}
</span>
<span class="info-line" *ngIf="node.skybianBuildVersion">
<span class="title">{{ 'node.details.node-info.skybian-version' | translate }}</span>
{{ node.skybianBuildVersion ? node.skybianBuildVersion : ('node.details.node-info.no-skybian-version' | translate) }}
{{ node.skybianBuildVersion }}
</span>
<span class="info-line">
<span class="title">{{ 'node.details.node-info.time.title' | translate }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ export class NodeService {
node.version = response.overview.build_info.version;
node.secondsOnline = Math.floor(Number.parseFloat(response.uptime));
node.minHops = response.min_hops;
node.buildTag = response.build_tag;
node.skybianBuildVersion = response.skybian_build_version;
node.isSymmeticNat = response.overview.is_symmetic_nat;
node.publicIp = response.overview.public_ip;
Expand Down
3 changes: 2 additions & 1 deletion static/skywire-manager-src/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@
"dmsg-server": "DMSG server:",
"ping": "Ping:",
"node-version": "Visor version:",
"build-type": "Build type:",
"skybian-version": "Skybian version:",
"no-skybian-version": "(not using Skybian)",
"unknown-build": "Unknown",
"time": {
"title": "Time online:",
"seconds": "a few seconds",
Expand Down
3 changes: 2 additions & 1 deletion static/skywire-manager-src/src/assets/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@
"dmsg-server": "Servidor DMSG:",
"ping": "Ping:",
"node-version": "Versión del visor:",
"build-type": "Tipo de build:",
"skybian-version": "Versión de Skybian:",
"no-skybian-version": "(no se usa Skybian)",
"unknown-build": "Desconocido",
"time": {
"title": "Tiempo online:",
"seconds": "unos segundos",
Expand Down
3 changes: 2 additions & 1 deletion static/skywire-manager-src/src/assets/i18n/es_base.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,9 @@
"dmsg-server": "DMSG server:",
"ping": "Ping:",
"node-version": "Visor version:",
"build-type": "Build type:",
"skybian-version": "Skybian version:",
"no-skybian-version": "(not using Skybian)",
"unknown-build": "Unknown",
"time": {
"title": "Time online:",
"seconds": "a few seconds",
Expand Down

0 comments on commit 721edcd

Please sign in to comment.