Skip to content

Commit

Permalink
show padlock on the app`s block
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipZajdel committed Jan 17, 2025
1 parent eeb946f commit 790af0f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions site/src/app/AppBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
TerminalIcon,
VerifiedIcon,
BookIcon,
LockIcon,
} from '@primer/octicons-react';

import { useState } from 'react';
Expand Down Expand Up @@ -59,6 +60,11 @@ function AppBlock({ app, setShowingAppDetails }: Props): JSX.Element {
<a href={app.repo} target="_blank" title="Visit Website">
<LinkExternalIcon className="hoverable-icon" size={20} />
</a>
{app.restricted &&
<div title="This addon requires additional permissions.">
<LockIcon className="hoverable-icon" size={20}/>
</div>
}
</div>

<div className="hidden items-center gap-2 md:flex">
Expand Down

0 comments on commit 790af0f

Please sign in to comment.