/**
* @license
-* Copyright (C) 2017 "IoT.bzh"
+* Copyright (C) 2017-2018 "IoT.bzh"
* Author Sebastien Douheret <sebastien@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
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;
}
}