From f5d5086b2dad46e3f34275721183567592dd4f2c Mon Sep 17 00:00:00 2001 From: Jonathan Matthews Date: Fri, 6 Dec 2024 14:04:27 +0000 Subject: [PATCH] playground: enable policy workspace This is to enable review of cue-fmt UX only. DO NOT REVIEW DO NOT SUBMIT Signed-off-by: Jonathan Matthews Change-Id: I89948a22ead2a61f883894601f939114fa46ed91 Dispatch-Trailer: {"type":"trybot","CL":1205273,"patchset":7,"ref":"refs/changes/73/1205273/7","targetBranch":"master"} --- playground/src/config/workspaces/policy.ts | 2 +- playground/src/containers/app.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/playground/src/config/workspaces/policy.ts b/playground/src/config/workspaces/policy.ts index 69b198499f..dc42ffa6ee 100644 --- a/playground/src/config/workspaces/policy.ts +++ b/playground/src/config/workspaces/policy.ts @@ -3,7 +3,7 @@ import { OPTION_TYPE, optionCUE, optionJSON, optionTerminal, optionYAML } from ' import { deepFreeze } from '@helpers/deep-freeze'; export const policyWorkspace: Workspace = deepFreeze({ - enabled: false, + enabled: true, type: WORKSPACE.POLICY, title: 'Policy', description: 'In the Policy Workspace you can play around with multiple inputs: Policy, Input & Data.', diff --git a/playground/src/containers/app.tsx b/playground/src/containers/app.tsx index 9519d2a49f..c24c4f92ac 100644 --- a/playground/src/containers/app.tsx +++ b/playground/src/containers/app.tsx @@ -30,7 +30,7 @@ import { setupWorkspaceConfig } from '@helpers/workspace'; import { DropdownChange } from '@models/dropdown'; import { Example } from '@models/example'; import { HASH_KEY, hashParams } from '@models/hashParams'; -import { OPTION_TYPE, optionCUE } from '@models/options'; +import { OPTION_TYPE } from '@models/options'; import { WORKSPACE, Workspace, Workspaces, WorkspaceTab } from '@models/workspace'; interface AppProps @@ -270,7 +270,7 @@ export class App extends React.Component actions: { format: { show: true, - disabled: tab.selected.value !== optionCUE.value + disabled: false, }, }, } }