implemented editable help
This commit is contained in:
parent
2dc962c754
commit
1440e9a6fc
@ -44,9 +44,11 @@ export class HelpComponent implements OnInit {
|
||||
}
|
||||
|
||||
deleteHelp() {
|
||||
this.api.delete('/help/' + this.route, (ignore, ignore) => {
|
||||
this.content = new HelpModel().deserialize({text: null, level: 'none'});
|
||||
this.edit = false;
|
||||
this.api.delete('/help/' + this.route, (ignore, err) => {
|
||||
if (!err) {
|
||||
this.content = new HelpModel().deserialize({text: null, level: 'none'});
|
||||
this.edit = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user