Skip to content

Commit

Permalink
enable auto-id row edit
Browse files Browse the repository at this point in the history
Signed-off-by: ryjiang <[email protected]>
  • Loading branch information
shanghaikid committed Dec 30, 2024
1 parent 0466aba commit c62c64f
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,8 @@ const CollectionData = (props: CollectionDataProps) => {
label: btnTrans('edit'),
icon: 'edit',
tooltip: btnTrans('editEntityTooltip'),
disabledTooltip: btnTrans(
collection.autoID
? 'editEntityDisabledTooltipAutoId'
: 'editEntityDisabledTooltip'
),
disabled: () => collection.autoID || selectedData?.length !== 1,
disabledTooltip: btnTrans('editEntityDisabledTooltip'),
disabled: () => selectedData?.length !== 1,
hideOnDisable() {
return selectedData?.length === 0;
},
Expand Down

0 comments on commit c62c64f

Please sign in to comment.