summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-06-23 17:46:22 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-06-23 17:46:22 +0200
commitbb199466565b97a731f58438bea4778c5763ceae (patch)
tree4392bd6393bdaba2872940d2797ed75692c24586 /webapp
parent49b2d4de4ab57c3993ca64e5e2461f1091586aae (diff)
Display arch and version in download packages list.
Diffstat (limited to 'webapp')
-rw-r--r--webapp/src/app/config/downloadXdsAgent.component.ts2
-rw-r--r--webapp/src/app/services/config.service.ts9
-rw-r--r--webapp/src/app/services/xdsserver.service.ts3
3 files changed, 12 insertions, 2 deletions
diff --git a/webapp/src/app/config/downloadXdsAgent.component.ts b/webapp/src/app/config/downloadXdsAgent.component.ts
index 55aa203..7a08174 100644
--- a/webapp/src/app/config/downloadXdsAgent.component.ts
+++ b/webapp/src/app/config/downloadXdsAgent.component.ts
@@ -9,7 +9,7 @@ import { IxdsAgentPackage } from "../services/config.service";
<h3>Download xds-agent packages:</h3>
<ul>
<li *ngFor="let p of packageUrls">
- for <a href="{{p.url}}">{{p.os | capitalize}}</a>
+ <a href="{{p.url}}">{{p.os | capitalize}} - {{p.arch}} ({{p.version}}) </a>
</li>
</ul>
<button type="button" class="btn btn-sm" (click)="pop.hide()"> Cancel </button>
diff --git a/webapp/src/app/services/config.service.ts b/webapp/src/app/services/config.service.ts
index 6b344e1..722c347 100644
--- a/webapp/src/app/services/config.service.ts
+++ b/webapp/src/app/services/config.service.ts
@@ -54,6 +54,8 @@ export interface ILocalSTConfig {
export interface IxdsAgentPackage {
os: string;
+ arch: string;
+ version: string;
url: string;
}
@@ -122,7 +124,12 @@ export class ConfigService {
this.xdsServerSvr.getXdsAgentInfo().subscribe(nfo => {
this.confStore.xdsAgentPackages = [];
nfo.tarballs && nfo.tarballs.forEach(el =>
- this.confStore.xdsAgentPackages.push({os: el.os, url: el.fileUrl})
+ this.confStore.xdsAgentPackages.push({
+ os: el.os,
+ arch: el.arch,
+ version: el.version,
+ url: el.fileUrl
+ })
);
this.confSubject.next(Object.assign({}, this.confStore));
});
diff --git a/webapp/src/app/services/xdsserver.service.ts b/webapp/src/app/services/xdsserver.service.ts
index 22e4ac9..4d20fa4 100644
--- a/webapp/src/app/services/xdsserver.service.ts
+++ b/webapp/src/app/services/xdsserver.service.ts
@@ -50,6 +50,9 @@ interface IXDSConfig {
export interface IXDSAgentTarball {
os: string;
+ arch: string;
+ version: string;
+ rawVersion: string;
fileUrl: string;
}