Add VSCode editor component

This commit is contained in:
garrettmills
2020-02-09 02:07:31 -06:00
parent b5d2f64fd3
commit f4c86a06e2
13 changed files with 267 additions and 9 deletions

View File

@@ -203,6 +203,9 @@ export class DatabaseComponent implements OnInit {
getInitObservable(): Observable<any> {
return new Observable<any>(sub => {
if ( this.hostRecord && this.pendingSetup ) {
if ( !this.hostRecord.Value ) {
this.hostRecord.Value = {};
}
if ( !this.hostRecord.Value.Value ) {
this.api.post(`/db/${this.hostRecord.PageId}/${this.hostRecord.UUID}/create`).subscribe(res => {
this.dbRecord = res.data;