Skip to content

Commit 8561e75

Browse files
committed
Add a link to system requirements to the toast
1 parent 7cdc3eb commit 8561e75

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

packages/compass/src/app/components/update-toasts.tsx

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,23 @@ export function onAutoupdateFailed(reason?: 'outdated-operating-system') {
110110
variant: 'warning',
111111
title: 'Failed to download Compass update',
112112
description:
113-
reason === 'outdated-operating-system'
114-
? 'The version of your operating system is no longer supported.'
115-
: 'Downloading a newer Compass version failed',
113+
reason === 'outdated-operating-system' ? (
114+
<>
115+
<Body>
116+
The version of your operating system is no longer supported.
117+
</Body>
118+
<Link
119+
data-testid="system-requirements-link"
120+
as="a"
121+
target="_blank"
122+
href="https://www.mongodb.com/docs/compass/current/install/"
123+
>
124+
See Documentation on System Requirements
125+
</Link>
126+
</>
127+
) : (
128+
'Downloading a newer Compass version failed'
129+
),
116130
});
117131
}
118132
export function onAutoupdateSuccess({

0 commit comments

Comments
 (0)