Add file uploader support

This commit is contained in:
garrettmills
2020-02-09 04:37:52 -06:00
parent f4c86a06e2
commit 813f4b094b
13 changed files with 172 additions and 23 deletions

View File

@@ -29,8 +29,6 @@ export class EditorPage implements OnInit {
this.route.params.subscribe(params => {
this.pageId = params.id;
});
console.log('editor page', this);
}
ngOnInit() {}
@@ -41,6 +39,7 @@ export class EditorPage implements OnInit {
this.pageRecord = pageRecord;
this.pages.get_nodes(pageRecord).subscribe((hosts: Array<HostRecord>) => {
this.hostRecords = hosts;
this.onSaveClick();
});
});
} else {
@@ -59,10 +58,8 @@ export class EditorPage implements OnInit {
});
popover.onDidDismiss().then(arg => {
console.log({arg});
const defValue = this.getDefaultValue(arg.data);
const hostRec = new HostRecord(defValue);
console.log({hostRec});
hostRec.type = arg.data;
hostRec.PageId = this.pageRecord.UUID;
this.hostRecords.push(hostRec);