Skip to content

Commit cee2a83

Browse files
committed
No more 'No secrets' banner
Signed-off-by: Trung Nguyen <[email protected]>
1 parent 0836699 commit cee2a83

File tree

1 file changed

+7
-15
lines changed
  • src/extension/ui/src/components/tile

1 file changed

+7
-15
lines changed

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

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ const ConfigurationModal = ({
280280
<Stack direction="column" spacing={2}>
281281
<ConfigEditor catalogItem={catalogItem} client={client} />
282282

283-
<Stack spacing={1}>
284-
<Typography variant="subtitle2">Secrets</Typography>
285-
{catalogItem.secrets && catalogItem.secrets?.length > 0 ? (
286-
catalogItem.secrets.map((secret) => {
283+
{catalogItem.secrets?.length > 0 && (
284+
<Stack spacing={1}>
285+
<Typography variant="subtitle2">Secrets</Typography>
286+
{catalogItem.secrets.map((secret) => {
287287
const secretEdited =
288288
(secret.assigned &&
289289
localSecrets[secret.name] !==
@@ -357,20 +357,12 @@ const ConfigurationModal = ({
357357
)}
358358
</Stack>
359359
);
360-
})
361-
) : (
362-
<Alert severity="info">
363-
No secrets available for this item.
364-
</Alert>
365-
)}
366-
</Stack>
360+
})}
361+
</Stack>
362+
)}
367363
</Stack>
368364
</Stack>
369365
</TabPanel>
370-
<TabPanel value={tabValue} index={2}>
371-
<Typography>Examples</Typography>
372-
WIP
373-
</TabPanel>
374366
</>
375367
)}
376368
</DialogContent>

0 commit comments

Comments
 (0)