Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[56918] Counter in files tab of new split screen is not updated correctly #16504

Merged
merged 1 commit into from
Aug 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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();
});
}
}