Payload
diff --git a/springwolf-ui/src/app/components/new/channels/channel-main/channel-operation.component.ts b/springwolf-ui/src/app/components/new/channels/channel-main/channel-operation.component.ts
index ecac952cb..544bec0f5 100644
--- a/springwolf-ui/src/app/components/new/channels/channel-main/channel-operation.component.ts
+++ b/springwolf-ui/src/app/components/new/channels/channel-main/channel-operation.component.ts
@@ -37,6 +37,7 @@ export class ChannelOperationComponent implements OnInit {
messageBindingExampleString?: string;
isShowBindings: boolean = UiService.DEFAULT_SHOW_BINDINGS;
+ isShowHeaders: boolean = UiService.DEFAULT_SHOW_HEADERS;
canPublish: boolean = false;
constructor(
@@ -83,6 +84,9 @@ export class ChannelOperationComponent implements OnInit {
this.uiService.isShowBindings$.subscribe(
(value) => (this.isShowBindings = value)
);
+ this.uiService.isShowHeaders$.subscribe(
+ (value) => (this.isShowHeaders = value)
+ );
}
createBindingExample(binding?: Binding): Example | undefined {
diff --git a/springwolf-ui/src/app/components/new/schema/schema.component.html b/springwolf-ui/src/app/components/new/schema/schema.component.html
index 340a48f00..714705dfd 100644
--- a/springwolf-ui/src/app/components/new/schema/schema.component.html
+++ b/springwolf-ui/src/app/components/new/schema/schema.component.html
@@ -147,6 +147,4 @@
{{ value.multipleOf }}
-
-
diff --git a/springwolf-ui/src/app/service/ui.service.ts b/springwolf-ui/src/app/service/ui.service.ts
index f382c9c62..aee036dcd 100644
--- a/springwolf-ui/src/app/service/ui.service.ts
+++ b/springwolf-ui/src/app/service/ui.service.ts
@@ -8,6 +8,7 @@ import { BehaviorSubject } from "rxjs";
export class UiService {
public static readonly DEFAULT_NEW_UI = true;
public static readonly DEFAULT_SHOW_BINDINGS = true;
+ public static readonly DEFAULT_SHOW_HEADERS = true;
private _isNewUi = new BehaviorSubject(UiService.DEFAULT_NEW_UI);
isNewUi$ = this._isNewUi.asObservable();
@@ -17,6 +18,11 @@ export class UiService {
);
isShowBindings$ = this._isShowBindings.asObservable();
+ private _isShowHeaders = new BehaviorSubject(
+ UiService.DEFAULT_SHOW_HEADERS
+ );
+ isShowHeaders$ = this._isShowHeaders.asObservable();
+
toggleIsNewUi(value: boolean) {
this._isNewUi.next(value);
}
@@ -24,4 +30,8 @@ export class UiService {
toggleIsShowBindings(value: boolean) {
this._isShowBindings.next(value);
}
+
+ toggleIsShowHeaders(value: boolean) {
+ this._isShowHeaders.next(value);
+ }
}