diff --git a/CHANGELOG.md b/CHANGELOG.md index 3451ccfd95..0ca5c80118 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## [11.10.2](https://github.com/dasch-swiss/dsp-das/compare/v11.10.1...v11.10.2) (2024-06-06) + + +### Bug Fixes + +* resource switching ([#1634](https://github.com/dasch-swiss/dsp-das/issues/1634)) ([173aaa0](https://github.com/dasch-swiss/dsp-das/commit/173aaa030bc1ae40a395ddf5b2435babdd6a5d0e)) + +## [11.10.1](https://github.com/dasch-swiss/dsp-das/compare/v11.10.0...v11.10.1) (2024-06-05) + + +### Bug Fixes + +* highlighting image region after creating new one (#DEV-3700) ([#1632](https://github.com/dasch-swiss/dsp-das/issues/1632)) ([ec9807c](https://github.com/dasch-swiss/dsp-das/commit/ec9807c1c001bd30aa5ed7db454e1aeab8e90d03)) +* highlights selected image region (#DEV-3700) ([#1630](https://github.com/dasch-swiss/dsp-das/issues/1630)) ([b0b8feb](https://github.com/dasch-swiss/dsp-das/commit/b0b8feb1f794c9f5d0d1a2bd8241c77e64ea4ec1)) +* on resource change, display first tab ([#1629](https://github.com/dasch-swiss/dsp-das/issues/1629)) ([bd31f3e](https://github.com/dasch-swiss/dsp-das/commit/bd31f3e603bb620e0eb6412d250857828eba34a0)) +* property value add button permissions (#DEV-3723) ([#1633](https://github.com/dasch-swiss/dsp-das/issues/1633)) ([4119a07](https://github.com/dasch-swiss/dsp-das/commit/4119a07d476b4d932a9afcc4301db5a528d106e2)) + ## [11.10.0](https://github.com/dasch-swiss/dsp-das/compare/v11.9.1...v11.10.0) (2024-05-30) diff --git a/libs/vre/shared/app-resource-page/src/lib/resource-representation.component.ts b/libs/vre/shared/app-resource-page/src/lib/resource-representation.component.ts index f2ad6abd45..6d8e7100da 100644 --- a/libs/vre/shared/app-resource-page/src/lib/resource-representation.component.ts +++ b/libs/vre/shared/app-resource-page/src/lib/resource-representation.component.ts @@ -1,4 +1,4 @@ -import { Component, Input, OnInit } from '@angular/core'; +import { Component, Input, OnChanges, OnInit } from '@angular/core'; import { DspResource } from '@dasch-swiss/vre/shared/app-common'; import { FileRepresentation, RepresentationConstants, getFileValue } from '@dasch-swiss/vre/shared/app-representations'; @@ -58,14 +58,14 @@ import { FileRepresentation, RepresentationConstants, getFileValue } from '@dasc `, }) -export class ResourceRepresentationComponent implements OnInit { +export class ResourceRepresentationComponent implements OnChanges { @Input({ required: true }) resource!: DspResource; representationToDisplay!: FileRepresentation; loading = false; protected readonly representationConstants = RepresentationConstants; - ngOnInit() { + ngOnChanges() { this.representationToDisplay = new FileRepresentation(getFileValue(this.resource)!); } diff --git a/package-lock.json b/package-lock.json index 7075405256..9876dac208 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "dsp-app", - "version": "11.10.0", + "version": "11.10.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "dsp-app", - "version": "11.10.0", + "version": "11.10.2", "dependencies": { "@angular/animations": "^16.2.12", "@angular/cdk": "^16.2.12", diff --git a/package.json b/package.json index cecbca5f92..2b7190cc3f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsp-app", - "version": "11.10.0", + "version": "11.10.2", "repository": { "type": "git", "url": "https://github.com/dasch-swiss/dsp-app.git"