Skip to content

Commit 1c1e175

Browse files
4manasamanasatumms2021389
authored
Fixed the attachment visibility issue (#387)
* updated the quick link component * Fixed the attachment visibility issue --------- Co-authored-by: manasa <[email protected]> Co-authored-by: tumms2021389 <[email protected]>
1 parent ddcb651 commit 1c1e175

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

packages/angular-sdk-components/src/lib/_components/infra/Containers/flow-container/flow-container.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ <h2>{{ containerName$ }}</h2>
3232
</div>
3333
<div *ngIf="bHasCaseMessages$">
3434
<mat-card class="psdk-message-card">
35-
<div style="display: flex; flex-direction: row">
35+
<div style="display: flex; flex-direction: row; align-items: center">
3636
<div><img class="psdk-icon" src="{{ checkSvg$ }}" /></div>
3737
<div>{{ caseMessages$ }}</div>
3838
</div>

packages/angular-sdk-components/src/lib/_components/infra/Containers/flow-container/flow-container.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export class FlowContainerComponent extends FlowContainerBaseComponent implement
280280

281281
// this.containerName$ = oWorkMeta["name"];
282282
if (bLoadChildren && oWorkData) {
283-
this.containerName$ = this.localizedVal(this.getActiveViewLabel() || oWorkData.caseInfo.assignments[0].name, undefined, this.localeReference);
283+
this.containerName$ = this.localizedVal(this.getActiveViewLabel() || oWorkData.caseInfo.assignments?.[0].name, undefined, this.localeReference);
284284
}
285285

286286
// turn off spinner

packages/angular-sdk-components/src/lib/_components/widget/attachment/attachment.component.scss

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
}
66

77
.psdk-modal-file-selector {
8-
border: 1px dashed var(--app-neutral-dark-color);
8+
border: 1px dashed var(--mat-sys-neutral-variant20);
99
width: 100%;
1010
padding: 0.3rem;
1111
text-align: center;
@@ -22,7 +22,7 @@
2222
}
2323

2424
.psdk-modal-file-selector-error {
25-
border: 1px dashed var(--app-error-light-color);
25+
border: 1px dashed var(--mat-sys-error);
2626
width: 100%;
2727
padding: 0.3rem;
2828
text-align: center;
@@ -52,7 +52,7 @@
5252
width: auto;
5353
}
5454
.psdk-modal-file-selector {
55-
border: 1px dashed var(--app-neutral-dark-color);
55+
border: 1px dashed var(--mat-sys-neutral-variant20);
5656
padding: 0.5rem;
5757
text-align: center;
5858
position: relative;
@@ -68,7 +68,7 @@
6868
}
6969

7070
.psdk-modal-file-selector-error {
71-
border: 1px dashed var(--app-error-light-color);
71+
border: 1px dashed var(--mat-sys-error);
7272
padding: 0.5rem;
7373
text-align: center;
7474
position: relative;
@@ -126,15 +126,13 @@
126126

127127
.psdk-attachment-card-svg-icon {
128128
width: 2.5rem;
129-
filter: var(--app-white-color-filter);
130129
}
131130

132131
.psdk-utility-button {
133132
background: none;
134133
border: none;
135134
margin-right: 0.5rem;
136135
cursor: pointer;
137-
filter: var(--app-white-color-filter);
138136
}
139137

140138
.psdk-utility-card-action-svg-icon {
@@ -151,7 +149,7 @@
151149
}
152150

153151
.file-div-error {
154-
border: 1px dashed var(--app-error-light-color);
152+
border: 1px dashed var(--mat-sys-error);
155153
width: 100%;
156154
padding: 0.5rem;
157155
text-align: center;

packages/angular-sdk-components/src/lib/_components/widget/attachment/attachment.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,12 @@ export class AttachmentComponent implements OnInit, OnDestroy {
132132
updateSelf() {
133133
const configProps: AttachmentProps = this.pConn$.resolveConfigProps(this.pConn$.getConfigProps()) as AttachmentProps;
134134
const stateProps = this.pConn$.getStateProps();
135-
const { value, label, required, visibility, disabled, readOnly, extensions, displayMode, isTableFormatter, allowMultiple, editMode } =
136-
configProps;
135+
const { value, label, required, disabled, readOnly, extensions, displayMode, isTableFormatter, allowMultiple, editMode } = configProps;
137136

138137
this.bRequired$ = this.utils.getBooleanValue(required);
139-
this.bVisible$ = this.utils.getBooleanValue(visibility);
138+
if (configProps.visibility != null) {
139+
this.bVisible$ = this.utils.getBooleanValue(configProps.visibility);
140+
}
140141
this.bDisabled$ = this.utils.getBooleanValue(disabled);
141142
this.bReadonly$ = this.utils.getBooleanValue(readOnly);
142143
this.allowMultiple$ = this.utils.getBooleanValue(allowMultiple);

0 commit comments

Comments
 (0)