mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
refactor(ui/code-editor): accept enum type (#22)
Some checks are pending
Label Conflicts / triage (push) Waiting to run
Some checks are pending
Label Conflicts / triage (push) Waiting to run
Co-authored-by: Chaim Lev-Ari <chaim.levi-ari@portainer.io>
This commit is contained in:
parent
20e9423390
commit
7a35b5b0e4
16 changed files with 57 additions and 66 deletions
|
@ -16,7 +16,7 @@ export function DockerContentField({
|
|||
id="stack-creation-editor"
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
yaml
|
||||
type="yaml"
|
||||
placeholder="Define or paste the content of your docker compose file here"
|
||||
error={error}
|
||||
readonly={readonly}
|
||||
|
|
|
@ -72,7 +72,7 @@ export function KubeManifestForm({
|
|||
id="stack-creation-editor"
|
||||
value={values.fileContent}
|
||||
onChange={(value) => handleChange({ fileContent: value })}
|
||||
yaml
|
||||
type="yaml"
|
||||
placeholder="Define or paste the content of your manifest file here"
|
||||
error={errors?.fileContent}
|
||||
data-cy="stack-creation-editor"
|
||||
|
|
|
@ -60,7 +60,7 @@ export function ComposeForm({
|
|||
<WebEditorForm
|
||||
data-cy="compose-editor"
|
||||
value={values.content}
|
||||
yaml
|
||||
type="yaml"
|
||||
id="compose-editor"
|
||||
placeholder="Define or paste the content of your docker compose file here"
|
||||
onChange={(value) => handleContentChange(DeploymentType.Compose, value)}
|
||||
|
|
|
@ -35,7 +35,7 @@ export function KubernetesForm({
|
|||
<WebEditorForm
|
||||
data-cy="kube-manifest-editor"
|
||||
value={values.content}
|
||||
yaml
|
||||
type="yaml"
|
||||
id="kube-manifest-editor"
|
||||
placeholder="Define or paste the content of your manifest here"
|
||||
onChange={(value) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue