export class ConfigGlobalComponent implements OnInit {
public configFormChanged = false;
+ public Config: IConfig = <IConfig>{};
constructor(
private configSvr: ConfigService,
}
ngOnInit() {
+ this.configSvr.Conf$.subscribe(cfg => this.Config = cfg);
}
onSubmit() {
+ this.configSvr.save(this.Config);
+ this.configFormChanged = false;
}
}