Skip to content

Commit 9c1c98c

Browse files
committed
Setup instruction link
Signed-off-by: Trung Nguyen <[email protected]>
1 parent 78f2f45 commit 9c1c98c

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

src/extension/ui/src/components/tile/Modal.tsx

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ const ConfigurationModal = ({
246246
}
247247
color="error"
248248
>
249-
Configure
249+
Configuration
250250
</Badge>
251251
}
252252
/>
@@ -286,6 +286,25 @@ const ConfigurationModal = ({
286286
}}
287287
>
288288
<Stack direction="column" spacing={2}>
289+
{catalogItem.readme !== undefined && (
290+
<Typography
291+
variant="body2"
292+
sx={{ color: 'text.secondary' }}
293+
>
294+
See{' '}
295+
<Link
296+
onClick={() =>
297+
client.host.openExternal(catalogItem.readme || '')
298+
}
299+
href={catalogItem.readme || ''}
300+
target="_blank"
301+
>
302+
setup instruction.
303+
<Launch />
304+
</Link>
305+
</Typography>
306+
)}
307+
289308
<ConfigEditor catalogItem={catalogItem} client={client} />
290309

291310
<Stack>

src/extension/ui/src/types/catalog/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export interface CatalogItemWithName extends CatalogItem {
2525
*/
2626
export interface CatalogItemRichened extends CatalogItem {
2727
name: string;
28+
readme?: string;
2829
secrets: { name: string, assigned: boolean }[];
2930
configValue: { [key: string]: any };
3031
configSchema: any;

0 commit comments

Comments
 (0)