Skip to content

Commit

Permalink
Change bulk stirng
Browse files Browse the repository at this point in the history
  • Loading branch information
CarolineDenis committed Jun 24, 2024
1 parent 2d68d5e commit 3fe7b91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,9 @@ export function RecordSelectorFromIds<SCHEMA extends AnySchema>({
{totalCount > 1 && <div>{slider}</div>}
</div>
)}
isDependent={isDependent}
isInRecordSet={!isNewRecordSet}
isLoading={isLoading || isExternalLoading}
isSubForm={false}
resource={resource}
title={title}
Expand All @@ -252,15 +254,6 @@ export function RecordSelectorFromIds<SCHEMA extends AnySchema>({
: undefined
}
onSaved={(): void => handleSaved(resource!)}
isDependent={isDependent}
/*
* TODO: Figure out what to do with this line.
* ResourceView in this file was never passed a isInRecordSet prop until this PR
* but isNewRecordSet has been removed in https://github.com/specify/specify7/pull/4904
* Can possibly just pass on the isInRecordSet prop received by this component?
* isInRecordSet={isInRecordSet}
*/
isLoading={isLoading || isExternalLoading}
/>

{dialogs}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,6 @@ function RecordSet<SCHEMA extends AnySchema>({
}
onClone={(resources: RA<SpecifyResource<SCHEMA>>): void => {
go(totalCount, 'new', resources[0]);
/*
* );
* Bulk carry when there are multiple resources
*/
if (resources.length > 1) {
const sortedResources = Array.from(resources).sort(
sortFunction((r) => r.id)
Expand Down
7 changes: 1 addition & 6 deletions specifyweb/frontend/js_src/lib/localization/forms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -839,12 +839,7 @@ export const formsText = createDictionary({
'de-ch': 'Schaltfläche „Übertrag anzeigen“',
},
bulkCarryForwardEnabled: {
'en-us': 'Show Bulk Carry Forward input amount',
'ru-ru': 'Показать кнопку «Перенести вперед»',
'es-es': 'Botón mostrar traer al frente',
'fr-fr': 'Afficher le bouton Reporter',
'uk-ua': 'Показати кнопку «Перенести вперед».',
'de-ch': 'Schaltfläche „Übertrag anzeigen“',
'en-us': 'Show Bulk Carry Forward count',
},
carryForwardDescription: {
'en-us': 'Create a new record with certain fields carried over',
Expand Down

0 comments on commit 3fe7b91

Please sign in to comment.