Skip to content

Commit

Permalink
fix: gateway update side effects
Browse files Browse the repository at this point in the history
  • Loading branch information
Regzox committed Mar 5, 2024
1 parent a1d2399 commit 04d8550
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Injectable } from '@angular/core';
import { BehaviorSubject, combineLatest } from 'rxjs';
import { Logger } from '../../../logger/logger';
import { Collection, Schema } from '../../../models';
import { EditObject } from '../../../object-editor/models/edit-object.model';
import { EditObjectService } from '../../../object-editor/services/edit-object.service';
import { SchemaService as SchemaUtils } from '../../../object-editor/services/schema.service';
Expand All @@ -10,7 +11,7 @@ import { DisplayObjectHelperService } from '../../../object-viewer/services/disp
import { DisplayRuleHelperService } from '../../../object-viewer/services/display-rule-helper.service';
import { SchemaElementToDisplayRuleService } from '../../../object-viewer/services/schema-element-to-display-rule.service';
import { DisplayObjectType, SedaVersion } from '../../../object-viewer/types';
import { Collection, Schema, SchemaService } from '../../../schema';
import { SchemaService } from '../../../schema';
import { diff } from '../../../utils';
import { ArchiveUnit } from '../../models/archive-unit';
import { JsonPatch, JsonPatchDto } from '../../models/json-patch';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { DisplayRule } from '../../object-viewer/models';
import { DataStructureService } from '../../object-viewer/services/data-structure.service';
import { TypeService } from '../../object-viewer/services/type.service';
import { ComponentType, DisplayObjectType } from '../../object-viewer/types';
import { Schema } from '../../schema';
import { EditObject } from '../models/edit-object.model';
import { SchemaOptions, SchemaService } from './schema.service';
import { Schema } from '../../models';

@Injectable({
providedIn: 'root',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Injectable } from '@angular/core';
import { Collection, Schema } from '../../models';
import { SchemaElement } from '../../object-viewer/models';
import { SedaVersion } from '../../object-viewer/types';
import { Collection, Schema } from '../../schema';
import { PathService } from './path.service';

export interface SchemaOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
import { DisplayRule } from '../../object-viewer/models';
import { DataStructureService } from '../../object-viewer/services/data-structure.service';
import { SchemaElementToDisplayRuleService } from '../../object-viewer/services/schema-element-to-display-rule.service';
import { Schema } from '../../schema';
import { Schema } from '../../models';

@Injectable({ providedIn: 'root' })
export class TemplateService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* The fact that you are presently reading this means that you have had
* knowledge of the CeCILL-C license and that you accept its terms.
*/
import { Collection } from '../../schema';
import { Collection } from '../../models';
import { Cardinality, SedaVersion } from '../types';
import { WithPath } from './with-path.model';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export function startupServiceFactory(startupService: StartupService, authServic
AccountModule,
ApplicationCardModule,
ApplicationSelectContentModule,
ArchiveModule,
AutocompletePositionDirectiveModule,
CancelledSnackBarModule,
CollapseDirectiveModule,
Expand Down Expand Up @@ -216,6 +217,7 @@ export function startupServiceFactory(startupService: StartupService, authServic
AccountModule,
ApplicationCardModule,
ApplicationSelectContentModule,
ArchiveModule,
AutocompletePositionDirectiveModule,
BlankComponent,
CollapseDirectiveModule,
Expand Down
4 changes: 2 additions & 2 deletions ui/ui-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ export class ArchiveUnitDescriptionTabComponent implements OnInit, AfterViewInit
}

ngAfterViewInit(): void {
this.subscriptions.add(
this.archiveUnitEditor.editObject$.subscribe((editObject) => {
this.editObject = editObject;
}),
);
const subscription = this.archiveUnitEditor?.editObject$.subscribe((editObject) => {
this.editObject = editObject;
});

if (subscription) this.subscriptions.add(subscription);
}

ngOnDestroy(): void {
Expand Down

0 comments on commit 04d8550

Please sign in to comment.