Ver código fonte

Fix/enable marketplace bug (#15895)

Benjamin 1 mês atrás
pai
commit
3a69a6a452

+ 3 - 0
.gitignore

@@ -202,3 +202,6 @@ api/.vscode
 
 # plugin migrate
 plugins.jsonl
+
+# mise
+mise.toml

+ 1 - 1
web/app/components/plugins/plugin-page/empty/index.tsx

@@ -71,7 +71,7 @@ const Empty = () => {
             <div className='w-full flex flex-col gap-y-1'>
               {[
                 ...(
-                  (enable_marketplace || true)
+                  (enable_marketplace && true)
                     ? [{ icon: MagicBox, text: t('plugin.list.source.marketplace'), action: 'marketplace' }]
                     : []
                 ),

+ 1 - 1
web/app/components/plugins/plugin-page/install-plugin-dropdown.tsx

@@ -85,7 +85,7 @@ const InstallPluginDropdown = ({
             <div className='w-full'>
               {[
                 ...(
-                  (enable_marketplace || true)
+                  (enable_marketplace && true)
                     ? [{ icon: MagicBox, text: t('plugin.source.marketplace'), action: 'marketplace' }]
                     : []
                 ),