[CORD-3186] Adding CORD version to the gui
Change-Id: I4512ed6fce7f5dc2bb70dc1df6f5a919456fc60a
diff --git a/src/app/core/key-binding/key-binding-panel.html b/src/app/core/key-binding/key-binding-panel.html
index ed198fd..e870679 100644
--- a/src/app/core/key-binding/key-binding-panel.html
+++ b/src/app/core/key-binding/key-binding-panel.html
@@ -51,4 +51,11 @@
<div class="col-xs-12">
<xos-debug-summary></xos-debug-summary>
</div>
+</div>
+<div class="row">
+ <div class="col-xs-12 text-right ">
+ <span class="text-accent small">
+ XOS-GUI version: {{vm.version}}
+ </span>
+ </div>
</div>
\ No newline at end of file
diff --git a/src/app/core/key-binding/key-binding-panel.ts b/src/app/core/key-binding/key-binding-panel.ts
index c77f6b6..9984d76 100644
--- a/src/app/core/key-binding/key-binding-panel.ts
+++ b/src/app/core/key-binding/key-binding-panel.ts
@@ -20,11 +20,13 @@
class XosKeyBindingPanelController {
static $inject = ['$scope', 'XosKeyboardShortcut'];
public bindings: IXosKeyboardShortcutMap;
+ public version: string;
constructor (
private $scope: ng.IScope,
private XosKeyboardShortcut: IXosKeyboardShortcutService
) {
+ this.version = require('../../../../package.json').version;
this.bindings = this.XosKeyboardShortcut.keyMapping;
}
}