fix: #479 - Toggle plugin is now experimental feature (#531)

This commit is contained in:
Louis 2023-11-02 19:57:36 +07:00 committed by GitHub
parent 8f9cc300b3
commit bbe1e618a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,16 +169,18 @@ const PluginCatalog = () => {
</Button>
)}
</div>
<Switch
checked={isActivePlugin}
onCheckedChange={(e) => {
if (e === true) {
downloadTarball(item.name)
} else {
uninstall(item.name)
}
}}
/>
{experimentalFeatureEnabed && (
<Switch
checked={isActivePlugin}
onCheckedChange={(e) => {
if (e === true) {
downloadTarball(item.name)
} else {
uninstall(item.name)
}
}}
/>
)}
</div>
)
})}