Skip to content

Commit

Permalink
Merge pull request #16504 from opf/fix/56918-files-counter
Browse files Browse the repository at this point in the history
[56918] Counter in files tab of new split screen is not updated correctly
  • Loading branch information
HDinger authored Aug 23, 2024
2 parents 0c0c522 + e7a9375 commit de0b020
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
Component,
EventEmitter,
Input,
OnInit,
Output,
} from '@angular/core';
import { IAttachment } from 'core-app/core/state/attachments/attachment.model';
Expand All @@ -43,7 +42,7 @@ import { AttachmentsResourceService } from 'core-app/core/state/attachments/atta
templateUrl: './attachment-list.component.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class OpAttachmentListComponent extends UntilDestroyedMixin implements OnInit {
export class OpAttachmentListComponent extends UntilDestroyedMixin {
@Input() public attachments:IAttachment[] = [];

@Input() public collectionKey:string;
Expand All @@ -58,11 +57,9 @@ export class OpAttachmentListComponent extends UntilDestroyedMixin implements On
super();
}

ngOnInit():void {
}

public removeAttachment(attachment:IAttachment):void {
this.attachmentsResourceService.removeAttachment(this.collectionKey, attachment).subscribe();
this.attachmentRemoved.emit();
this.attachmentsResourceService.removeAttachment(this.collectionKey, attachment).subscribe(() => {
this.attachmentRemoved.emit();
});
}
}

0 comments on commit de0b020

Please sign in to comment.