Add file uploader support
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user