|
|
@ -1,4 +1,4 @@
|
|
|
|
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
|
|
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
|
|
|
|
import { ActivatedRoute } from '@angular/router';
|
|
|
|
import { ActivatedRoute } from '@angular/router';
|
|
|
|
import { deepen } from 'src/app/helperFunctions/deepenObject';
|
|
|
|
import { deepen } from 'src/app/helperFunctions/deepenObject';
|
|
|
|
import { flatten } from 'src/app/helperFunctions/flattenObject';
|
|
|
|
import { flatten } from 'src/app/helperFunctions/flattenObject';
|
|
|
@ -32,7 +32,7 @@ interface ReferenceTableInfo {
|
|
|
|
templateUrl: './data-page.component.html',
|
|
|
|
templateUrl: './data-page.component.html',
|
|
|
|
styleUrls: ['./data-page.component.scss'],
|
|
|
|
styleUrls: ['./data-page.component.scss'],
|
|
|
|
})
|
|
|
|
})
|
|
|
|
export class DataPageComponent implements OnInit {
|
|
|
|
export class DataPageComponent implements OnInit, OnDestroy {
|
|
|
|
@Input()
|
|
|
|
@Input()
|
|
|
|
propertiesInfo: Array<any> = [];
|
|
|
|
propertiesInfo: Array<any> = [];
|
|
|
|
|
|
|
|
|
|
|
@ -89,6 +89,10 @@ export class DataPageComponent implements OnInit {
|
|
|
|
}, this.relockingIntervalDuration);
|
|
|
|
}, this.relockingIntervalDuration);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngOnDestroy() {
|
|
|
|
|
|
|
|
clearInterval(this.relockingInterval);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
addPropertiesFromGQLSchemaToObject(infoObject: any) {
|
|
|
|
addPropertiesFromGQLSchemaToObject(infoObject: any) {
|
|
|
|
for (const prop of infoObject) {
|
|
|
|
for (const prop of infoObject) {
|
|
|
|
if (prop.type === 'Group') {
|
|
|
|
if (prop.type === 'Group') {
|
|
|
|