Skip to content

Commit b82c5be

Browse files
author
manasa
committed
Displaying the caseType name on self service case view page
1 parent 7acab3b commit b82c5be

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
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
@@ -1,7 +1,7 @@
11
<div style="text-align: left" class="psdk-flow-container-top">
22
<div *ngIf="!bShowConfirm">
33
<div *ngIf="!todo_showTodo$">
4-
<h2>{{ containerName$ }}</h2>
4+
<h2 *ngIf="!isMultiStep">{{ containerName$ }}</h2>
55
<div *ngIf="banners?.length">
66
<component-mapper name="AlertBanner" [props]="{ banners }"></component-mapper>
77
</div>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export class FlowContainerComponent extends FlowContainerBaseComponent implement
7070
// itemKey: string = ""; // JA - this is what Nebula/Constellation uses to pass to finishAssignment, navigateToStep
7171

7272
pConnectOfActiveContainerItem;
73+
isMultiStep: any;
7374

7475
constructor(
7576
injector: Injector,
@@ -281,6 +282,7 @@ export class FlowContainerComponent extends FlowContainerBaseComponent implement
281282
// this.containerName$ = oWorkMeta["name"];
282283
if (bLoadChildren && oWorkData) {
283284
this.containerName$ = this.localizedVal(this.getActiveViewLabel() || oWorkData.caseInfo.assignments?.[0].name, undefined, this.localeReference);
285+
this.isMultiStep = this.utils.getBooleanValue(oWorkData.caseInfo.assignments?.[0].isMultiStep);
284286
}
285287

286288
// turn off spinner

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
<div *ngIf="showCaseActions" class="psdk-self-service-case-view-header">
2-
<div>{{ this.heading$ }}</div>
3-
<div class="psdk-case-view-buttons">
1+
<div class="psdk-self-service-case-view-header">
2+
<div class="heading">{{ this.heading$ }}</div>
3+
<div *ngIf="showCaseActions" class="psdk-case-view-buttons">
44
<button mat-raised-button color="secondary" [matMenuTriggerFor]="actionMenu">{{ localizedVal('Actions...', localeCategory) }}</button>
55
<mat-menu #actionMenu="matMenu" overlapTrigger="false">
66
<ng-container *ngFor="let action of arAvailableActions$">

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,16 @@ button {
117117
}
118118

119119
.psdk-self-service-case-view-header {
120+
height: 50px;
120121
display: flex;
121-
justify-content: space-around;
122+
justify-content: space-between;
122123
align-items: center;
123-
margin: 10px;
124124
background-color: var(--mat-sys-primary);
125+
padding: 0px 8px;
126+
}
127+
128+
.heading {
129+
font-size: 20px;
130+
color: var(--mat-sys-on-primary);
131+
font-weight: 600;
125132
}

packages/angular-sdk-components/src/lib/_components/template/wss-nav-bar/wss-nav-bar.component.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@
125125
}
126126

127127
mat-toolbar {
128-
margin-bottom: 5px;
129128
background-color: var(--mat-sys-surface-variant);
130129
}
131130

0 commit comments

Comments
 (0)