Skip to content

Commit

Permalink
Show 'WithoutPreparations' button for all Interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
melton-jason committed May 13, 2024
1 parent dda312a commit 5641349
Showing 1 changed file with 4 additions and 12 deletions.
Expand Up @@ -38,7 +38,8 @@ import { AutoGrowTextArea } from '../Molecules/AutoGrowTextArea';
import { Dialog } from '../Molecules/Dialog';
import { userPreferences } from '../Preferences/userPreferences';
import { RecordSetsDialog } from '../Toolbar/RecordSets';
import type {
import {
interactionsWithPrepTables,
InteractionWithPreps,
PreparationData,
PreparationRow,
Expand Down Expand Up @@ -288,20 +289,11 @@ export function InteractionDialog({
>
{interactionsText.addUnassociated()}
</Button.Info>
) : actionTable.name === 'Loan' &&
!(
state.type === 'MissingState' && prepsData?.length === 0
) ? (
<Link.Info href={getResourceViewUrl('Loan')}>
) : interactionsWithPrepTables.includes(actionTable.name) ? (
<Link.Info href={getResourceViewUrl(actionTable.name)}>
{interactionsText.withoutPreparations()}
</Link.Info>
) : undefined}
{actionTable.name === 'Gift' &&
itemCollection === undefined && (
<Link.Info href={getResourceViewUrl('Gift')}>
{interactionsText.withoutPreparations()}
</Link.Info>
)}
{state.type === 'MissingState' &&
prepsData?.length !== 0 &&
prepsData ? (
Expand Down

0 comments on commit 5641349

Please sign in to comment.