implemented editable help
This commit is contained in:
parent
2dc962c754
commit
1440e9a6fc
@ -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;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user