From 319f4b12ca01a59b36c7d8d5feda5b33176be0d8 Mon Sep 17 00:00:00 2001 From: alexandraRamanenka Date: Fri, 26 Jan 2024 06:50:30 -0500 Subject: [PATCH] FIO-7764: Fixes a typo in File component settings --- .../file/editForm/File.edit.file.js | 2 +- src/components/textfield/fixtures/comp8.js | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 src/components/textfield/fixtures/comp8.js diff --git a/src/components/file/editForm/File.edit.file.js b/src/components/file/editForm/File.edit.file.js index e76dba3a0d9..6a79593fc23 100644 --- a/src/components/file/editForm/File.edit.file.js +++ b/src/components/file/editForm/File.edit.file.js @@ -185,7 +185,7 @@ export default [ input: true, key: 'fileNameTemplate', label: 'File Name Template', - placeholder: '(optional) { {name} }-{ {guid} }"', + placeholder: '(optional) { {name} }-{ {guid} }', tooltip: 'Specify template for name of uploaded file(s). Regular template variables are available (`data`, `component`, `user`, `value`, `moment` etc.), also `fileName`, `guid` variables are available. `guid` part must be present, if not found in template, will be added at the end.', weight: 25 }, diff --git a/src/components/textfield/fixtures/comp8.js b/src/components/textfield/fixtures/comp8.js new file mode 100644 index 00000000000..deff965fce0 --- /dev/null +++ b/src/components/textfield/fixtures/comp8.js @@ -0,0 +1,42 @@ +export default { + type: 'form', + display: 'form', + components: [ + { + label: 'Date', + widget: { + type: 'calendar', + altInput: true, + allowInput: true, + clickOpens: true, + enableDate: true, + enableTime: false, + mode: 'single', + noCalendar: false, + format: 'MM/yyyy', + dateFormat: 'MM/yyyy', + useLocaleSettings: false, + hourIncrement: 1, + minuteIncrement: 5, + // eslint-disable-next-line camelcase + time_24hr: false, + saveAs: 'text', + displayInTimezone: 'viewer', + locale: 'en', + }, + applyMaskOn: 'change', + tableView: true, + key: 'date', + type: 'textfield', + input: true, + }, + { + type: 'button', + label: 'Submit', + key: 'submit', + disableOnInvalid: true, + input: true, + tableView: false, + }, + ], +};