Преглед на файлове

Fix/enable marketplace bug (#15895)

Benjamin преди 4 месеца
родител
ревизия
3a69a6a452
променени са 3 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 3 0
      .gitignore
  2. 1 1
      web/app/components/plugins/plugin-page/empty/index.tsx
  3. 1 1
      web/app/components/plugins/plugin-page/install-plugin-dropdown.tsx

+ 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' }]
                     : []
                 ),