Skip to content

Commit

Permalink
fix: detect changes
Browse files Browse the repository at this point in the history
  • Loading branch information
domsteinbach committed Jan 28, 2025
1 parent 8fb321c commit 6d4fd0f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Component, Inject, Input, OnChanges, SimpleChanges } from '@angular/core';
import { ChangeDetectorRef, Component, Inject, Input, OnChanges, SimpleChanges } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import {
Constants,
Expand Down Expand Up @@ -40,7 +40,8 @@ export class ArchiveComponent implements OnChanges {
@Inject(DspApiConnectionToken)
private _dspApiConnection: KnoraApiConnection,
private _dialog: MatDialog,
private _rs: RepresentationService
private _rs: RepresentationService,
private _cd: ChangeDetectorRef
) {}

ngOnChanges(changes: SimpleChanges): void {
Expand Down Expand Up @@ -103,6 +104,7 @@ export class ArchiveComponent implements OnChanges {

this._rs.getFileInfo(this.src.fileValue.fileUrl).subscribe(res => {
this.originalFilename = res['originalFilename'];
this._cd.detectChanges();
});
});
}
Expand Down

0 comments on commit 6d4fd0f

Please sign in to comment.