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

Add the build tag to the UI #969

Merged
merged 1 commit into from
Oct 26, 2021
Merged
Show file tree
Hide file tree
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
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