diff --git a/webgui/main.js b/webgui/main.js index ac5856e1d..a32f328ec 100644 --- a/webgui/main.js +++ b/webgui/main.js @@ -184,11 +184,15 @@ require([ ], // radio settings [ + "com1stn", "/instrumentation/comm/station-name" + ], [ "com1use", "/instrumentation/comm/frequencies/selected-mhz" ], [ "com1sby", "/instrumentation/comm/frequencies/standby-mhz" ], [ "com1stn", "/instrumentation/comm/station-name" + ], [ + "com2stn", "/instrumentation/comm[1]/station-name" ], [ "com2use", "/instrumentation/comm[1]/frequencies/selected-mhz" ], [ diff --git a/webgui/widgets/radiostack.html b/webgui/widgets/radiostack.html index 20f4bb686..9c2b8a4f0 100644 --- a/webgui/widgets/radiostack.html +++ b/webgui/widgets/radiostack.html @@ -1,8 +1,8 @@
- +
-
\ No newline at end of file + diff --git a/webgui/widgets/radiostack.js b/webgui/widgets/radiostack.js index 0d71583a1..1417604ab 100644 --- a/webgui/widgets/radiostack.js +++ b/webgui/widgets/radiostack.js @@ -6,6 +6,7 @@ define([ var self = this; self.useKey = pfx + "use"; self.sbyKey = pfx + "sby"; + self.stnKey = pfx + "stn"; self.label = ko.observable(label); self.use = ko.observable(188.888).extend({ @@ -16,6 +17,10 @@ define([ fgprop : self.sbyKey }); + self.stn = ko.observable("").extend({ + fgprop : self.stnKey + }); + self.swap = function() { ko.utils.knockprops.write(self.useKey, this.stby()); ko.utils.knockprops.write(self.sbyKey, this.use()); @@ -26,6 +31,7 @@ define([ this.radios = ko.observableArray([ new DualFrequencyViewModel("COM1", "com1"), new DualFrequencyViewModel("COM2", "com2"), new DualFrequencyViewModel("NAV1", "nav1"), new DualFrequencyViewModel("NAV2", "nav2"), + new DualFrequencyViewModel("ADF", "adf1"), ]); }