Skip to content

Commit

Permalink
fix #2064
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuancelin committed Jan 22, 2025
1 parent 87aec61 commit cb72d30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions otoroshi/javascript/src/forms/ng_plugins/NgBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ export default {
type: 'form',
collapsable: true,
collapsed: true,
label: 'Custom TLS setup',
schema: Object.entries({
enabled: {
label: 'enabled',
Expand Down Expand Up @@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion otoroshi/javascript/src/style/components/_designer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
// z-index: 100;
left: 12px;
right: 0;
padding-bottom: 80px;
padding-bottom: 130px;
}

.editor-view-informations {
Expand Down

0 comments on commit cb72d30

Please sign in to comment.