@@ -2,13 +2,14 @@ jQuery(document).ready(function() {
2
2
var frontendServiceUrl = $ ( '#frontendServiceUrl' ) . text ( ) ;
3
3
var frontendServiceBackEndPath = "/backend" ;
4
4
var sendbtn = document . getElementById ( 'switcher' ) . disabled = true ;
5
- function singleInstanceModel ( name , host , port , path , https , active ) {
5
+ function singleInstanceModel ( name , host , port , path , https , active , defaultBackend ) {
6
6
this . name = ko . observable ( name ) ,
7
7
this . host = ko . observable ( host ) ,
8
8
this . port = ko . observable ( port ) ,
9
9
this . path = ko . observable ( path ) ,
10
10
this . https = ko . observable ( https ) ,
11
11
this . active = ko . observable ( active )
12
+ this . defaultBackend = ko . observable ( defaultBackend )
12
13
}
13
14
function multipleInstancesModel ( data ) {
14
15
var self = this ;
@@ -17,7 +18,7 @@ function multipleInstancesModel(data) {
17
18
var json = JSON . parse ( ko . toJSON ( data ) ) ;
18
19
for ( var i = 0 ; i < json . length ; i ++ ) {
19
20
var obj = json [ i ] ;
20
- var instance = new singleInstanceModel ( obj . name , obj . host , obj . port , obj . path , obj . https , obj . active ) ;
21
+ var instance = new singleInstanceModel ( obj . name , obj . host , obj . port , obj . path , obj . https , obj . active , obj . defaultBackend ) ;
21
22
self . instances . push ( instance ) ;
22
23
}
23
24
self . checked = function ( ) {
0 commit comments