Skip to content

Commit

Permalink
feat(*): entity forms JSON/YAML preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopoldthecoder committed Jan 5, 2024
1 parent 86c6f03 commit 36eb94b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/composables/useFormGeneralConfig.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { reactive, toRefs } from 'vue'
import type { KongManagerBaseFormConfig } from '@kong-ui-public/entities-shared'
import { useBaseGeneralConfig } from './useBaseGeneralConfig'

export const useFormGeneralConfig = () => {
return useBaseGeneralConfig() as Pick<KongManagerBaseFormConfig, 'app' | 'workspace' | 'gatewayInfo' | 'apiBaseUrl'>
return reactive({
...toRefs(useBaseGeneralConfig()),
jsonYamlMilestone2Enabled: true,
}) as Pick<KongManagerBaseFormConfig, 'app' | 'workspace' | 'gatewayInfo' | 'apiBaseUrl' | 'jsonYamlMilestone2Enabled'>
}

0 comments on commit 36eb94b

Please sign in to comment.