File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
compass-crud/src/components
compass-schema/src/components Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff 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 ) }
Original file line number Diff line number Diff 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 />
You can’t perform that action at this time.
0 commit comments