this.loadConfigAndUpdateForm()
this.loadCategoriesAndLanguages()
+ if (!this.serverConfig.allowEdits) {
+ this.form.disable()
+ }
}
- async formValidated () {
+ formValidated () {
const value: ComponentCustomConfig = this.form.getRawValue()
forkJoin([
// Reload general configuration
this.serverService.resetConfig()
- .subscribe(config => this.serverConfig = config)
+ .subscribe(config => {
+ this.serverConfig = config
+ })
this.updateForm()