Skip to content

Commit

Permalink
chore(crud): improve tooltip message, remove in Compass from schema v…
Browse files Browse the repository at this point in the history
  • Loading branch information
Anemy authored Jan 16, 2025
1 parent 1de0c4c commit dc5be52
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions packages/compass-crud/src/components/crud-toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,22 @@ const CrudToolbar: React.FunctionComponent<CrudToolbarProps> = ({
{!readonly && (
<UpdateMenu
isWritable={isWritable && !shouldDisableBulkOp}
disabledTooltip="Remove limit and skip in your query to perform an update"
disabledTooltip={
isWritable
? 'Remove limit and skip in your query to perform an update'
: instanceDescription
}
onClick={onUpdateButtonClicked}
></UpdateMenu>
)}
{!readonly && (
<DeleteMenu
isWritable={isWritable && !shouldDisableBulkOp}
disabledTooltip="Remove limit and skip in your query to perform a delete"
disabledTooltip={
isWritable
? 'Remove limit and skip in your query to perform a delete'
: instanceDescription
}
onClick={onDeleteButtonClicked}
></DeleteMenu>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/compass-schema/src/components/compass-schema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ const InitialScreen: React.FunctionComponent<{
href="https://docs.mongodb.com/compass/master/schema/"
target="_blank"
>
Learn more about schema analysis in Compass
Learn more about schema analysis
</Link>
}
/>
Expand Down

0 comments on commit dc5be52

Please sign in to comment.