Skip to content

Commit 8cf6933

Browse files
authored
Removed publish event CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW (#406)
* Removed publish event CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW * remove publish event CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW
1 parent 98aa453 commit 8cf6933

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

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

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

114113
updateHeaderAndSummary() {
115114
this.configProps$ = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as CaseViewProps;
116-
const hasNewAttachments = this.pConn$.getDataObject().caseInfo?.hasNewAttachments;
117-
118-
if (hasNewAttachments !== this.bHasNewAttachments) {
119-
this.bHasNewAttachments = hasNewAttachments;
120-
if (this.bHasNewAttachments) {
121-
PCore.getPubSubUtils().publish(PCore.getEvents().getCaseEvent().CASE_ATTACHMENTS_UPDATED_FROM_CASEVIEW, true);
122-
}
123-
}
124115

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

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)