Every editor page will instantiate its own editor service
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -22,6 +22,7 @@ import {EditorService} from '../../../service/editor.service';
|
||||
})
|
||||
export class DatabaseComponent extends EditorNodeContract implements OnInit {
|
||||
@Input() nodeId: string;
|
||||
@Input() editorUUID?: string;
|
||||
@ViewChild('agGridElement') agGridElement: AgGridAngular;
|
||||
|
||||
public dbRecord: any;
|
||||
@@ -41,7 +42,7 @@ export class DatabaseComponent extends EditorNodeContract implements OnInit {
|
||||
protected modals: ModalController,
|
||||
protected alerts: AlertController,
|
||||
protected loader: LoadingController,
|
||||
public readonly editorService: EditorService,
|
||||
public editorService: EditorService,
|
||||
) { super(); }
|
||||
|
||||
title = 'app';
|
||||
@@ -65,6 +66,7 @@ export class DatabaseComponent extends EditorNodeContract implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.editorService = this.editorService.getEditor(this.editorUUID);
|
||||
this.editorService.registerNodeEditor(this.nodeId, this).then(() => {
|
||||
console.log('database editor', this);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user