mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 23:35:31 +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
|
@ -100,7 +100,7 @@ export function InnerForm({
|
|||
id="custom-template-creation-editor"
|
||||
value={values.FileContent}
|
||||
onChange={handleChangeFileContent}
|
||||
yaml
|
||||
type="yaml"
|
||||
placeholder={texts.editor.placeholder}
|
||||
error={errors.FileContent}
|
||||
>
|
||||
|
|
|
@ -92,7 +92,7 @@ export function InnerForm({
|
|||
id="edit-custom-template-editor"
|
||||
value={gitFileContent || values.FileContent}
|
||||
onChange={handleChangeFileContent}
|
||||
yaml
|
||||
type="yaml"
|
||||
placeholder={
|
||||
gitFileContent
|
||||
? 'Preview of the file from git repository'
|
||||
|
|
|
@ -119,7 +119,7 @@ export function DeployForm({
|
|||
}
|
||||
setFieldValue('fileContent', value);
|
||||
}}
|
||||
yaml
|
||||
type="yaml"
|
||||
error={errors.fileContent}
|
||||
placeholder="Define or paste the content of your docker compose file here"
|
||||
readonly={isGit}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue