Skip to content

Commit

Permalink
fix(entities-plugins): config for horizontal radios in plugin scoping
Browse files Browse the repository at this point in the history
  • Loading branch information
sumimakito committed May 22, 2024
1 parent 9c4ed44 commit d6ed866
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/entities/entities-plugins/docs/plugin-form.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ A form component for Plugins.
- default: `false`
- Whether to use the redesigned form for the RLA plugin.

- `useHorizontalRadiosForPluginScoping`:
- type: `boolean`
- required: `false`
- default: `false`
- Whether to use the horizontal radios in the plugin scoping section.

The base konnect or kongManger config.

#### `pluginType`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ const defaultFormSchema: DefaultPluginsSchemaRecord = reactive({
},
],
pinned: true,
horizontalRadios: props.config.useHorizontalRadiosForPluginScoping, // KM-136-RLA-Redesign: While enabled, this new horizontal radio design will be applied for ALL plugins
},
protocols: {
id: 'protocols',
Expand Down
2 changes: 2 additions & 0 deletions packages/entities/entities-plugins/src/types/plugin-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export interface BasePluginFormConfig {
groupFields?: boolean
/** Whether to use the redesigned form for the RLA plugin. Default: false */
useRLARedesignedForm?: boolean
/** Whether to use the horizontal radios in the plugin scoping section. Default: false */
useHorizontalRadiosForPluginScoping?: boolean
}

export interface KongManagerPluginSelectConfig extends BasePluginSelectConfig, KongManagerBaseFormConfig {}
Expand Down

0 comments on commit d6ed866

Please sign in to comment.