Skip to content

Commit

Permalink
fix: delete source doesn't need to be locked
Browse files Browse the repository at this point in the history
  • Loading branch information
Saelmala committed Sep 17, 2024
1 parent d0d4e2a commit abf5bc9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/inventory/editView/UpdateButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,16 @@ export default function UpdateButtons({
<Button
type="button"
state="warning"
disabled={source.status !== 'gone' || locked}
disabled={source.status !== 'gone'}
className={`${
locked || source.status !== 'gone'
source.status !== 'gone'
? 'bg-button-delete/50 pointer-events-none'
: 'bg-button-delete'
} mr-5 relative flex`}
onClick={() => removeInventorySource(source)}
>
<IconTrash
className={`${
locked || source.status !== 'gone' ? 'text-p/50' : 'text-p'
}`}
className={`${source.status !== 'gone' ? 'text-p/50' : 'text-p'}`}
/>
</Button>
<Button state="warning" onClick={close}>
Expand Down

0 comments on commit abf5bc9

Please sign in to comment.