From cb72d30a2382e49d8ca42221a4bf21dd8dd9566e Mon Sep 17 00:00:00 2001 From: Mathieu Ancelin Date: Wed, 22 Jan 2025 09:32:45 +0100 Subject: [PATCH] fix #2064 --- otoroshi/javascript/src/forms/ng_plugins/NgBackend.js | 9 +++++++-- otoroshi/javascript/src/style/components/_designer.scss | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/otoroshi/javascript/src/forms/ng_plugins/NgBackend.js b/otoroshi/javascript/src/forms/ng_plugins/NgBackend.js index 6834d9ee0..fdad56257 100644 --- a/otoroshi/javascript/src/forms/ng_plugins/NgBackend.js +++ b/otoroshi/javascript/src/forms/ng_plugins/NgBackend.js @@ -375,7 +375,6 @@ export default { type: 'form', collapsable: true, collapsed: true, - label: 'Custom TLS setup', schema: Object.entries({ enabled: { label: 'enabled', @@ -537,7 +536,13 @@ export default { help: 'The percentage of targets in with the best response in the whole target pool to choose. If 0,5, then more than 50% of the calls will happen on the target with the best response time.', }, }, - flow: ['type', 'ratio'], + flow: (item) => { + if (item.type === 'WeightedBestResponseTime') { + return ['type', 'ratio']; + } else { + return ['type']; + } + }, }, }, flow: ['root', 'rewrite', 'targets', 'client', 'load_balancing', 'health_check'], diff --git a/otoroshi/javascript/src/style/components/_designer.scss b/otoroshi/javascript/src/style/components/_designer.scss index d603cb641..bfac19941 100644 --- a/otoroshi/javascript/src/style/components/_designer.scss +++ b/otoroshi/javascript/src/style/components/_designer.scss @@ -323,7 +323,7 @@ // z-index: 100; left: 12px; right: 0; - padding-bottom: 80px; + padding-bottom: 130px; } .editor-view-informations {