From 875c80d6fe079bfdce4c1dc74e388ca5411054ca Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Thu, 26 Nov 2020 13:51:58 +0100 Subject: [PATCH] Remove batch editing components --- src/app/components/data-page/data-page.component.ts | 8 ++++++-- src/app/components/table/table.component.html | 4 ++-- src/app/components/table/table.component.scss | 3 +++ src/app/components/table/table.component.ts | 6 +++--- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/app/components/data-page/data-page.component.ts b/src/app/components/data-page/data-page.component.ts index 432f674..dc2736f 100644 --- a/src/app/components/data-page/data-page.component.ts +++ b/src/app/components/data-page/data-page.component.ts @@ -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 { deepen } from 'src/app/helperFunctions/deepenObject'; import { flatten } from 'src/app/helperFunctions/flattenObject'; @@ -32,7 +32,7 @@ interface ReferenceTableInfo { templateUrl: './data-page.component.html', styleUrls: ['./data-page.component.scss'], }) -export class DataPageComponent implements OnInit { +export class DataPageComponent implements OnInit, OnDestroy { @Input() propertiesInfo: Array = []; @@ -89,6 +89,10 @@ export class DataPageComponent implements OnInit { }, this.relockingIntervalDuration); } + ngOnDestroy() { + clearInterval(this.relockingInterval); + } + addPropertiesFromGQLSchemaToObject(infoObject: any) { for (const prop of infoObject) { if (prop.type === 'Group') { diff --git a/src/app/components/table/table.component.html b/src/app/components/table/table.component.html index 9b3a277..17d2b4c 100644 --- a/src/app/components/table/table.component.html +++ b/src/app/components/table/table.component.html @@ -3,7 +3,7 @@ {{ headline }}
- + -->