Skip to content

Commit

Permalink
Prevent app zip download option showing for non msteams integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardDowling committed Oct 8, 2024
1 parent 8c98e2d commit f0c6faf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions web/packages/teleport/src/Integrations/IntegrationList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export function IntegrationList(props: Props<IntegrationLike>) {
View Status
</MenuItem>
)}
{item.kind === 'msteams' && (
<MenuItem onClick={() => function () {
api.fetch(cfg.getMsTeamsAppZipRoute(clusterId, item.name))
.then(response => response.blob())
Expand All @@ -140,10 +141,10 @@ export function IntegrationList(props: Props<IntegrationLike>) {
document.body.removeChild(a);
URL.revokeObjectURL(url);
});
}()
}>
Download app.zip
</MenuItem>
}()}>
Download app.zip
</MenuItem>
)}
<MenuItem onClick={() => props.onDeletePlugin(item)}>
Delete...
</MenuItem>
Expand Down

0 comments on commit f0c6faf

Please sign in to comment.