From b5a29eb3008704d8d5e6a3897414c1465311a727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Thu, 22 Feb 2018 00:01:07 +0000 Subject: [PATCH] fix(my-joy-beta): s/Snapshot key/Snapshot name --- .../src/components/instances/snapshots.js | 1 + packages/ui-toolkit/src/key-value/index.js | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/my-joy-beta/src/components/instances/snapshots.js b/packages/my-joy-beta/src/components/instances/snapshots.js index c6756a79..b8aaaa70 100644 --- a/packages/my-joy-beta/src/components/instances/snapshots.js +++ b/packages/my-joy-beta/src/components/instances/snapshots.js @@ -86,6 +86,7 @@ export const AddForm = props => ( method="create" input="input" type="snapshot" + typeLabel="name" expanded onlyName noRemove diff --git a/packages/ui-toolkit/src/key-value/index.js b/packages/ui-toolkit/src/key-value/index.js index 112a53ec..95d68a80 100644 --- a/packages/ui-toolkit/src/key-value/index.js +++ b/packages/ui-toolkit/src/key-value/index.js @@ -111,12 +111,20 @@ const TextareaKeyValue = ({ ); -const InputKeyValue = ({ type, submitting, onlyName, onlyValue }) => ( +const InputKeyValue = ({ + type, + submitting, + typeLabel, + onlyName, + onlyValue +}) => ( {!onlyValue ? ( - {titleCase(type)} key + + {titleCase(type)} {typeLabel} + @@ -145,6 +153,7 @@ export const KeyValue = ({ disabled = false, input = 'input', type = 'metadata', + typeLabel = 'key', method = 'add', initialValues = {}, error = null, @@ -226,6 +235,7 @@ export const KeyValue = ({