Skip to content

Commit 869ffc8

Browse files
committed
remove publish event CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW
1 parent 0b0971d commit 869ffc8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/angular-sdk-components/src/lib/_components/template/self-service-case-view/self-service-case-view.component.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ export class SelfServiceCaseViewComponent implements OnInit, OnDestroy {
4949
caseSummaryPConn$: any;
5050
currentCaseID = '';
5151
editAction: boolean;
52-
bHasNewAttachments = false;
5352
localizedVal: any;
5453
localeCategory = 'CaseView';
5554
localeKey: any;
@@ -117,14 +116,6 @@ export class SelfServiceCaseViewComponent implements OnInit, OnDestroy {
117116

118117
updateHeaderAndSummary() {
119118
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as SelfServiceCaseViewProps;
120-
const hasNewAttachments = this.pConn$.getDataObject().caseInfo?.hasNewAttachments;
121-
122-
if (hasNewAttachments !== this.bHasNewAttachments) {
123-
this.bHasNewAttachments = hasNewAttachments;
124-
if (this.bHasNewAttachments) {
125-
PCore.getPubSubUtils().publish(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, true);
126-
}
127-
}
128119

129120
const kids = this.pConn$.getChildren() as any[];
130121
for (const kid of kids) {

0 commit comments

Comments
 (0)