Skip to content

Commit 21e58c5

Browse files
committed
Move payload to channel exapnsion panel body
1 parent f72325b commit 21e58c5

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

springwolf-ui/src/app/channels/channel-main/channel-main.component.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,10 @@ button {
1919
padding: 6px;
2020
font-size: small;
2121
font-weight: bold;
22+
}
23+
24+
.payload-name {
25+
background-color: #E0E0E0;
26+
border-radius: 4px;
27+
padding: 6px;
2228
}

springwolf-ui/src/app/channels/channel-main/channel-main.component.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<section>
2+
<mat-divider></mat-divider>
3+
<div fxLayout fxLayoutAlign="flex-start center" fxLayoutGap="12px">
4+
<div class="property-badge">Payload</div>
5+
<h4>{{ operation.message.title }}</h4>
6+
<div class="payload-name">{{ operation.message.name }}</div>
7+
</div>
28
<div *ngIf="kafkaBinding.groupId" fxLayout fxLayoutAlign="flex-start center" fxLayoutGap="12px">
39
<div class="property-badge">Group ID</div>
410
<h4>{{ kafkaBinding.groupId }}</h4>

springwolf-ui/src/app/channels/channels.component.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,3 @@
99
mat-divider {
1010
height: 20px;
1111
}
12-
13-
.payload-name {
14-
background-color: #E0E0E0;
15-
border-radius: 4px;
16-
padding: 6px;
17-
}

springwolf-ui/src/app/channels/channels.component.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ <h1>Channels</h1>
55
<mat-panel-title fxLayout fxLayoutAlign="flex-start center" fxLayoutGap="16px">
66
<div class="operation-badge">{{ channel.value.operation.type === "SUBSCRIBE" ? "CONSUMER" : "PRODUCER" }}</div>
77
<h3>{{ channel.key }}</h3>
8-
<mat-divider vertical></mat-divider>
9-
<h4>{{ channel.value.operation.message.title }}</h4>
10-
<div class="payload-name">{{ channel.value.operation.message.name }}</div>
118
</mat-panel-title>
129
</mat-expansion-panel-header>
1310
<app-channel-main [channelName]="channel.key" [operation]="channel.value.operation"></app-channel-main>

0 commit comments

Comments
 (0)