diff options
Diffstat (limited to 'frontend/src/components')
| -rw-r--r-- | frontend/src/components/settings/pages/plugin_list/index.tsx | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/frontend/src/components/settings/pages/plugin_list/index.tsx b/frontend/src/components/settings/pages/plugin_list/index.tsx index f13cbe2b..da70f4ca 100644 --- a/frontend/src/components/settings/pages/plugin_list/index.tsx +++ b/frontend/src/components/settings/pages/plugin_list/index.tsx @@ -83,21 +83,22 @@ function PluginInteractables(props: { entry: ReorderableEntry<PluginTableData> } > {t('PluginListIndex.uninstall')} </MenuItem> - {disabled ? <MenuItem - onSelected={() => - DeckyPluginLoader.disablePlugin( - name, - t('PluginLoader.plugin_disable.title', { name }), - t('PluginLoader.plugin_disable.button'), - t('PluginLoader.plugin_disable.desc', { name }), - ) - } - > - {t('PluginListIndex.plugin_disable')} - </MenuItem> : + {disabled ? // implement enabler <> - </> + </> : + <MenuItem + onSelected={() => + DeckyPluginLoader.disablePlugin( + name, + t('PluginLoader.plugin_disable.title', { name }), + t('PluginLoader.plugin_disable.button'), + t('PluginLoader.plugin_disable.desc', { name }), + ) + } + > + {t('PluginListIndex.plugin_disable')} + </MenuItem> } {hidden ? ( <MenuItem onSelected={onShow}>{t('PluginListIndex.show')}</MenuItem> |
