Skip to content

Commit dc5be52

Browse files
authored
chore(crud): improve tooltip message, remove in Compass from schema view COMPASS-8835 (#6620)
1 parent 1de0c4c commit dc5be52

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

packages/compass-crud/src/components/crud-toolbar.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,22 @@ const CrudToolbar: React.FunctionComponent<CrudToolbarProps> = ({
240240
{!readonly && (
241241
<UpdateMenu
242242
isWritable={isWritable && !shouldDisableBulkOp}
243-
disabledTooltip="Remove limit and skip in your query to perform an update"
243+
disabledTooltip={
244+
isWritable
245+
? 'Remove limit and skip in your query to perform an update'
246+
: instanceDescription
247+
}
244248
onClick={onUpdateButtonClicked}
245249
></UpdateMenu>
246250
)}
247251
{!readonly && (
248252
<DeleteMenu
249253
isWritable={isWritable && !shouldDisableBulkOp}
250-
disabledTooltip="Remove limit and skip in your query to perform a delete"
254+
disabledTooltip={
255+
isWritable
256+
? 'Remove limit and skip in your query to perform a delete'
257+
: instanceDescription
258+
}
251259
onClick={onDeleteButtonClicked}
252260
></DeleteMenu>
253261
)}

packages/compass-schema/src/components/compass-schema.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ const InitialScreen: React.FunctionComponent<{
273273
href="https://docs.mongodb.com/compass/master/schema/"
274274
target="_blank"
275275
>
276-
Learn more about schema analysis in Compass
276+
Learn more about schema analysis
277277
</Link>
278278
}
279279
/>

0 commit comments

Comments
 (0)