Skip to content

Commit 026a3e1

Browse files
authored
Show 'None' when a mode has no tool groups (#3095)
1 parent dc03cb7 commit 026a3e1

File tree

17 files changed

+38
-16
lines changed

17 files changed

+38
-16
lines changed

webview-ui/src/components/prompts/PromptsView.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,12 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
696696
{(() => {
697697
const currentMode = getCurrentMode()
698698
const enabledGroups = currentMode?.groups || []
699+
700+
// If there are no enabled groups, display translated "None"
701+
if (enabledGroups.length === 0) {
702+
return t("prompts:tools.noTools")
703+
}
704+
699705
return enabledGroups
700706
.map((group) => {
701707
const groupName = getGroupName(group)

webview-ui/src/i18n/locales/ca/prompts.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"browser": "Utilitzar navegador",
2626
"command": "Executar comandes",
2727
"mcp": "Utilitzar MCP"
28-
}
28+
},
29+
"noTools": "Cap"
2930
},
3031
"roleDefinition": {
3132
"title": "Definició de rol",

webview-ui/src/i18n/locales/de/prompts.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"browser": "Browser verwenden",
2626
"command": "Befehle ausführen",
2727
"mcp": "MCP verwenden"
28-
}
28+
},
29+
"noTools": "Keine"
2930
},
3031
"roleDefinition": {
3132
"title": "Rollendefinition",

webview-ui/src/i18n/locales/en/prompts.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"browser": "Use Browser",
2626
"command": "Run Commands",
2727
"mcp": "Use MCP"
28-
}
28+
},
29+
"noTools": "None"
2930
},
3031
"roleDefinition": {
3132
"title": "Role Definition",

webview-ui/src/i18n/locales/es/prompts.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"browser": "Usar navegador",
2626
"command": "Ejecutar comandos",
2727
"mcp": "Usar MCP"
28-
}
28+
},
29+
"noTools": "Ninguna"
2930
},
3031
"roleDefinition": {
3132
"title": "Definición de rol",

webview-ui/src/i18n/locales/fr/prompts.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"browser": "Utiliser le navigateur",
2626
"command": "Exécuter des commandes",
2727
"mcp": "Utiliser MCP"
28-
}
28+
},
29+
"noTools": "Aucun"
2930
},
3031
"roleDefinition": {
3132
"title": "Définition du rôle",

webview-ui/src/i18n/locales/hi/prompts.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"browser": "ब्राउज़र का उपयोग करें",
2626
"command": "कमांड्स चलाएँ",
2727
"mcp": "MCP का उपयोग करें"
28-
}
28+
},
29+
"noTools": "कोई नहीं"
2930
},
3031
"roleDefinition": {
3132
"title": "भूमिका परिभाषा",

webview-ui/src/i18n/locales/it/prompts.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"browser": "Usa browser",
2626
"command": "Esegui comandi",
2727
"mcp": "Usa MCP"
28-
}
28+
},
29+
"noTools": "Nessuno"
2930
},
3031
"roleDefinition": {
3132
"title": "Definizione del ruolo",

webview-ui/src/i18n/locales/ja/prompts.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"browser": "ブラウザを使用",
2626
"command": "コマンドを実行",
2727
"mcp": "MCP を使用"
28-
}
28+
},
29+
"noTools": "なし"
2930
},
3031
"roleDefinition": {
3132
"title": "役割の定義",

webview-ui/src/i18n/locales/ko/prompts.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"browser": "브라우저 사용",
2626
"command": "명령 실행",
2727
"mcp": "MCP 사용"
28-
}
28+
},
29+
"noTools": "없음"
2930
},
3031
"roleDefinition": {
3132
"title": "역할 정의",

0 commit comments

Comments
 (0)