potentially made it so saved settings get applied with no reload in most situations

This commit is contained in:
Isaac Grynsztein
2020-03-11 22:04:22 -04:00
parent 4f4a82c3c4
commit bad4b8630b
4 changed files with 39 additions and 11 deletions

View File

@@ -38,6 +38,7 @@ export class SettingsComponent implements OnInit {
this.postsService.setConfig(settingsToSave).subscribe(res => {
if (res['success']) {
// sets new config as old config
this.postsService.settings_changed.next(true);
this.initial_config = JSON.parse(JSON.stringify(this.new_config));
}
}, err => {