Skip to content

Commit

Permalink
fix(FieldFormatters): resolve minor UX issues
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpatiiuk committed Jul 21, 2024
1 parent 95e319f commit 22ced94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function Part({
aria-label={commonText.size()}
disabled={enforcePlaceholderSize}
isReadOnly={isReadOnly}
min={0}
min={1}
required
value={part.size}
onValueChange={(size): void =>
Expand All @@ -173,7 +173,7 @@ function Part({
<td>
<Input.Text
aria-label={resourcesText.hint()}
disabled={part.type === 'year'}
disabled={part.type === 'year' || part.type === 'numeric'}
isReadOnly={isReadOnly}
required
value={
Expand Down
14 changes: 1 addition & 13 deletions specifyweb/frontend/js_src/lib/localization/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,19 +308,7 @@ export const resourcesText = createDictionary({
'uk-ua': 'Доступні форматувальники полів',
},
selectDefaultFormatter: {
'en-us': 'Please select a default record formatter for this table',
'de-ch':
'Bitte wählen Sie einen Standarddatensatzformatierer für diese Tabelle',
'es-es':
'Seleccione un formateador de registros predeterminado para esta tabla',
'fr-fr': `
Veuillez sélectionner un formateur d'enregistrement par défaut pour cette
table
`,
'ru-ru': `
Пожалуйста, выберите форматирование записей по умолчанию для этой таблицы.
`,
'uk-ua': 'Виберіть стандартний формат запису для цієї таблиці',
'en-us': 'Please designate one of the formatters as default',
},
duplicateFormatters: {
'en-us': 'Record formatter names must be unique',
Expand Down

0 comments on commit 22ced94

Please sign in to comment.