add awesome plugin repo url

This commit is contained in:
lloydzhou
2024-09-06 19:37:24 +08:00
parent 7455978ee5
commit 9275f2d753
5 changed files with 42 additions and 2 deletions

View File

@@ -728,12 +728,18 @@ export function ChatActions(props: {
{showPlugins(currentProviderName, currentModel) && (
<ChatAction
onClick={() => setShowPluginSelector(true)}
onClick={() => {
if (pluginStore.getAll().length == 0) {
navigate(Path.Plugins);
} else {
setShowPluginSelector(true);
}
}}
text={Locale.Plugin.Name}
icon={<PluginIcon />}
/>
)}
{showPluginSelector && showPlugins(currentProviderName, currentModel) && (
{showPluginSelector && (
<Selector
multiple
defaultSelectedValue={chatStore.currentSession().mask?.plugin}