Skip to content

Commit 53734b6

Browse files
committed
fix: disable
1 parent d225a87 commit 53734b6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/entities/entities-plugins/sandbox/pages/PluginFormPage.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
:config="konnectConfig"
1111
enable-redis-partial
1212
enable-vault-secret-picker
13+
:engine="forceFreeForm ? 'freeform' : 'vfg'"
1314
:plugin-id="id"
1415
:plugin-type="plugin"
1516
use-custom-names-for-plugin
@@ -22,6 +23,7 @@
2223
:config="kongManagerConfig"
2324
enable-redis-partial
2425
enable-vault-secret-picker
26+
:engine="forceFreeForm ? 'freeform' : 'vfg'"
2527
:plugin-id="id"
2628
:plugin-type="plugin"
2729
@global-action="handleGlobalAction"
@@ -41,6 +43,7 @@ import { ToastManager } from '@kong/kongponents'
4143
import type { GlobalAction } from '../../src/components/free-form/shared/types'
4244
4345
const toaster = new ToastManager()
46+
const forceFreeForm = true
4447
provide(FEATURE_FLAGS.DATAKIT_ENABLE_FLOW_EDITOR, true)
4548
provide(FEATURE_FLAGS.DATAKIT_M2, true)
4649

packages/entities/entities-plugins/src/components/free-form/shared/composables.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ function useDisabledFieldsManager(onChange?: () => void) {
762762
function isAncestorDisabled(path: string): boolean {
763763
const generalizedPath = generalizePath(path)
764764
for (const disabledPath of disabledFields.value) {
765-
if (generalizedPath !== disabledPath && generalizedPath.startsWith(disabledPath)) {
765+
if (generalizedPath.startsWith(disabledPath + utils.separator)) {
766766
return true
767767
}
768768
}

0 commit comments

Comments
 (0)