mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-09-11 16:19:25 +00:00
cleanup
This commit is contained in:
@@ -5,7 +5,7 @@ import { MatIconModule } from '@angular/material/icon';
|
|||||||
import { ParamInfo } from '../../models/form.model';
|
import { ParamInfo } from '../../models/form.model';
|
||||||
import { ListsService } from '../../services/lists.service';
|
import { ListsService } from '../../services/lists.service';
|
||||||
import { SchemaService } from '../../services/schema.service';
|
import { SchemaService } from '../../services/schema.service';
|
||||||
import { parseStringToArray } from '../../utils/params.utils';
|
import { parseStringToArray } from '../../utils/params';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-array-form',
|
selector: 'app-array-form',
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { cloneDeep, has, isEqual } from 'lodash-es';
|
|||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
import { ParamInfo, ParamsFormInfo } from '../../models/form.model';
|
import { ParamInfo, ParamsFormInfo } from '../../models/form.model';
|
||||||
import { SchemaService } from '../../services/schema.service';
|
import { SchemaService } from '../../services/schema.service';
|
||||||
import { cleanParams, schemaToParamsFormInfo } from '../../utils/params.utils';
|
import { cleanParams, schemaToParamsFormInfo } from '../../utils/params';
|
||||||
import { ArrayFormComponent } from '../array-form/array-form.component';
|
import { ArrayFormComponent } from '../array-form/array-form.component';
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-params-form',
|
selector: 'app-params-form',
|
||||||
@@ -39,7 +39,6 @@ export class ParamsFormComponent implements OnChanges, OnDestroy {
|
|||||||
formGroupSubscription?: Subscription;
|
formGroupSubscription?: Subscription;
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
console.log('params-form destroyed')
|
|
||||||
if (this.formGroupSubscription) {
|
if (this.formGroupSubscription) {
|
||||||
this.formGroupSubscription.unsubscribe()
|
this.formGroupSubscription.unsubscribe()
|
||||||
}
|
}
|
||||||
@@ -49,7 +48,6 @@ export class ParamsFormComponent implements OnChanges, OnDestroy {
|
|||||||
paramsSchema: SomeJSONSchema
|
paramsSchema: SomeJSONSchema
|
||||||
data: any
|
data: any
|
||||||
}>): void {
|
}>): void {
|
||||||
console.log(changes)
|
|
||||||
if (changes.paramsSchema) {
|
if (changes.paramsSchema) {
|
||||||
if (changes.paramsSchema.previousValue === undefined && changes.paramsSchema.currentValue !== undefined) {
|
if (changes.paramsSchema.previousValue === undefined && changes.paramsSchema.currentValue !== undefined) {
|
||||||
if (this.paramsSchema) {
|
if (this.paramsSchema) {
|
||||||
|
|||||||
Reference in New Issue
Block a user