implemented editable help

This commit is contained in:
VLE2FE 2020-09-03 10:54:20 +02:00
parent 2dc962c754
commit 1440e9a6fc

View File

@ -44,9 +44,11 @@ export class HelpComponent implements OnInit {
} }
deleteHelp() { deleteHelp() {
this.api.delete('/help/' + this.route, (ignore, ignore) => { this.api.delete('/help/' + this.route, (ignore, err) => {
this.content = new HelpModel().deserialize({text: null, level: 'none'}); if (!err) {
this.edit = false; this.content = new HelpModel().deserialize({text: null, level: 'none'});
this.edit = false;
}
}); });
} }
} }