Skip to content

Commit

Permalink
Enable and disable prebuilt extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Dec 27, 2021
1 parent b56b721 commit dcf92b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/extensionmanager/src/widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ function ListEntry(props: ListEntry.IProperties): React.ReactElement<any> {
{entry.description}
</div>
<div className="jp-extensionmanager-entry-buttons">
{entry.enabled && entry.pkg_type == 'source' && (
{entry.enabled && (
<Button
onClick={() => props.performAction('disable', entry)}
minimal
Expand All @@ -291,7 +291,7 @@ function ListEntry(props: ListEntry.IProperties): React.ReactElement<any> {
{trans.__('Disable')}
</Button>
)}
{entry.installed && entry.pkg_type == 'source' && !entry.enabled && (
{entry.installed && !entry.enabled && (
<Button
onClick={() => props.performAction('enable', entry)}
minimal
Expand Down

0 comments on commit dcf92b4

Please sign in to comment.