|
|
@ -10,24 +10,24 @@ class HasticConfigCtrl { |
|
|
|
public static template = configTemplate; |
|
|
|
public static template = configTemplate; |
|
|
|
public accessOptions: any[]; |
|
|
|
public accessOptions: any[]; |
|
|
|
public current: any; |
|
|
|
public current: any; |
|
|
|
|
|
|
|
private showAccessHelp: boolean = false; |
|
|
|
|
|
|
|
|
|
|
|
constructor() { |
|
|
|
constructor($scope) { |
|
|
|
console.log(this); |
|
|
|
console.log(this); |
|
|
|
this.accessOptions = [ |
|
|
|
this.accessOptions = [ |
|
|
|
{ key: 'proxy', value: 'Server (Default)' }, |
|
|
|
{ key: 'proxy', value: 'Server (Default)' }, |
|
|
|
{ key: 'direct', value: 'Browser'} |
|
|
|
{ key: 'direct', value: 'Browser'} |
|
|
|
]; |
|
|
|
]; |
|
|
|
//this.current.access = 'proxy';
|
|
|
|
this.current.access = 'proxy'; |
|
|
|
// if(this.appModel.jsonData === undefined) {
|
|
|
|
|
|
|
|
// this.appModel.jsonData = {};
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this.appEditCtrl.setPreUpdateHook(this.preUpdate.bind(this));
|
|
|
|
|
|
|
|
// this.appEditCtrl.setPostUpdateHook(this.postUpdate.bind(this));
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
normalizeUrl() { |
|
|
|
normalizeUrl() { |
|
|
|
// this.appModel.jsonData.hasticServerUrl = normalizeUrl(this.appModel.jsonData.hasticServerUrl);
|
|
|
|
this.current.url = normalizeUrl(this.current.url); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
toggleAccessHelp() { |
|
|
|
|
|
|
|
console.log('hey'); |
|
|
|
|
|
|
|
this.showAccessHelp = !this.showAccessHelp; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|