Skip to content

Commit d777ea0

Browse files
authored
Merge pull request #183 from docker/add-readme-link
Setup instruction link
2 parents 4e58073 + bcfc098 commit d777ea0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,15 @@ const ConfigurationModal = ({
205205
>
206206
{catalogItem.description}
207207
</Typography>
208-
{catalogItem.source !== undefined && (
208+
{catalogItem.readme !== undefined && (
209209
<Typography variant="body2" sx={{ mt: 2, color: 'text.secondary' }}>
210210
Repository:{' '}
211211
<Link
212-
onClick={() => client.host.openExternal(catalogItem.source || '')}
213-
href={catalogItem.source || ''}
212+
onClick={() => client.host.openExternal(catalogItem.readme || '')}
213+
href={catalogItem.readme || ''}
214214
target="_blank"
215215
>
216-
{catalogItem.source || ''}
216+
{catalogItem.readme || ''}
217217
<Launch />
218218
</Link>
219219
</Typography>
@@ -246,7 +246,7 @@ const ConfigurationModal = ({
246246
}
247247
color="error"
248248
>
249-
Configure
249+
Configuration
250250
</Badge>
251251
}
252252
/>

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)