You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
48 lines
1.1 KiB
import {Component, Input, OnInit} from '@angular/core';
|
|
import {EditorService} from '../../../service/editor.service';
|
|
|
|
@Component({
|
|
selector: 'noded-file-box-page',
|
|
template: `
|
|
<div class="container" *ngIf="ready">
|
|
<editor-file-box
|
|
[nodeId]="nodeId"
|
|
[editorUUID]="this.editorService.instanceUUID"
|
|
[fullPage]="true"
|
|
[boxId]="boxId"
|
|
></editor-file-box>
|
|
</div>
|
|
`,
|
|
styles: [
|
|
`
|
|
.container {
|
|
height: 100%;
|
|
}
|
|
|
|
editor-database {
|
|
height: 100%;
|
|
display: flex;
|
|
}
|
|
`,
|
|
],
|
|
})
|
|
export class FileBoxPageComponent implements OnInit {
|
|
@Input() nodeId: string;
|
|
@Input() pageId: string;
|
|
@Input() boxId?: string;
|
|
|
|
public ready = false;
|
|
|
|
constructor(
|
|
public editorService: EditorService,
|
|
) {
|
|
this.editorService = editorService.getEditor();
|
|
}
|
|
|
|
ngOnInit() {
|
|
this.editorService.startEditing(this.pageId).then(() => {
|
|
this.ready = true;
|
|
});
|
|
}
|
|
}
|