mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 09:00:05 +00:00
Rename reset keybindings to reset all keybindings (#3411)
Co-authored-by: Benjamin Lu <templu1107@proton.me> Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -101,14 +101,14 @@
|
||||
</template>
|
||||
</Dialog>
|
||||
<Button
|
||||
v-tooltip="$t('g.resetKeybindingsTooltip')"
|
||||
v-tooltip="$t('g.resetAllKeybindingsTooltip')"
|
||||
class="mt-4"
|
||||
:label="$t('g.reset')"
|
||||
icon="pi pi-trash"
|
||||
:label="$t('g.resetAll')"
|
||||
icon="pi pi-replay"
|
||||
severity="danger"
|
||||
fluid
|
||||
text
|
||||
@click="resetKeybindings"
|
||||
@click="resetAllKeybindings"
|
||||
/>
|
||||
</PanelTemplate>
|
||||
</template>
|
||||
@@ -255,13 +255,13 @@ async function saveKeybinding() {
|
||||
}
|
||||
|
||||
const toast = useToast()
|
||||
async function resetKeybindings() {
|
||||
keybindingStore.resetKeybindings()
|
||||
async function resetAllKeybindings() {
|
||||
keybindingStore.resetAllKeybindings()
|
||||
await keybindingService.persistUserKeybindings()
|
||||
toast.add({
|
||||
severity: 'info',
|
||||
summary: 'Info',
|
||||
detail: 'Keybindings reset',
|
||||
detail: 'All keybindings reset',
|
||||
life: 3000
|
||||
})
|
||||
}
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
"confirm": "Confirm",
|
||||
"confirmed": "Confirmed",
|
||||
"reset": "Reset",
|
||||
"resetKeybindingsTooltip": "Reset keybindings to default",
|
||||
"resetAll": "Reset All",
|
||||
"resetAllKeybindingsTooltip": "Reset all keybindings to default",
|
||||
"customizeFolder": "Customize Folder",
|
||||
"icon": "Icon",
|
||||
"color": "Color",
|
||||
|
||||
@@ -198,8 +198,9 @@
|
||||
"reportIssue": "Enviar informe",
|
||||
"reportIssueTooltip": "Enviar el informe de error a Comfy Org",
|
||||
"reportSent": "Informe enviado",
|
||||
"reset": "Restablecer",
|
||||
"resetKeybindingsTooltip": "Restablecer combinaciones de teclas a la configuración predeterminada",
|
||||
"reset": "Reiniciar",
|
||||
"resetAll": "Restablecer todo",
|
||||
"resetAllKeybindingsTooltip": "Restablecer todas las teclas de acceso rápido a la configuración predeterminada",
|
||||
"restart": "Reiniciar",
|
||||
"resultsCount": "Encontrados {count} resultados",
|
||||
"save": "Guardar",
|
||||
|
||||
@@ -199,7 +199,8 @@
|
||||
"reportIssueTooltip": "Soumettre le rapport d'erreur à Comfy Org",
|
||||
"reportSent": "Rapport soumis",
|
||||
"reset": "Réinitialiser",
|
||||
"resetKeybindingsTooltip": "Réinitialiser les raccourcis clavier par défaut",
|
||||
"resetAll": "Réinitialiser tout",
|
||||
"resetAllKeybindingsTooltip": "Réinitialiser tous les raccourcis clavier par défaut",
|
||||
"restart": "Redémarrer",
|
||||
"resultsCount": "{count} Résultats Trouvés",
|
||||
"save": "Enregistrer",
|
||||
|
||||
@@ -199,7 +199,8 @@
|
||||
"reportIssueTooltip": "エラーレポートをComfy Orgに送信",
|
||||
"reportSent": "レポートが送信されました",
|
||||
"reset": "リセット",
|
||||
"resetKeybindingsTooltip": "キーバインディングをデフォルトにリセット",
|
||||
"resetAll": "すべてリセット",
|
||||
"resetAllKeybindingsTooltip": "すべてのキーバインディングをデフォルトにリセット",
|
||||
"restart": "再起動",
|
||||
"resultsCount": "{count}件の結果が見つかりました",
|
||||
"save": "保存",
|
||||
|
||||
@@ -199,7 +199,8 @@
|
||||
"reportIssueTooltip": "Comfy Org에 오류 보고서를 제출합니다.",
|
||||
"reportSent": "보고서 제출됨",
|
||||
"reset": "재설정",
|
||||
"resetKeybindingsTooltip": "키 바인딩을 기본값으로 재설정",
|
||||
"resetAll": "모두 초기화",
|
||||
"resetAllKeybindingsTooltip": "모든 키 바인딩을 기본값으로 초기화",
|
||||
"restart": "재시작",
|
||||
"resultsCount": "{count} 개의 결과를 찾았습니다",
|
||||
"save": "저장",
|
||||
|
||||
@@ -198,8 +198,9 @@
|
||||
"reportIssue": "Отправить отчёт",
|
||||
"reportIssueTooltip": "Отправить отчёт об ошибке в Comfy Org",
|
||||
"reportSent": "Отчёт отправлен",
|
||||
"reset": "Сбросить",
|
||||
"resetKeybindingsTooltip": "Сбросить сочетания клавиш по умолчанию",
|
||||
"reset": "Сброс",
|
||||
"resetAll": "Сбросить все",
|
||||
"resetAllKeybindingsTooltip": "Сбросить все сочетания клавиш по умолчанию",
|
||||
"restart": "Перезапустить",
|
||||
"resultsCount": "Найдено {count} результатов",
|
||||
"save": "Сохранить",
|
||||
|
||||
@@ -199,7 +199,8 @@
|
||||
"reportIssueTooltip": "向 Comfy Org 提交错误报告",
|
||||
"reportSent": "报告已提交",
|
||||
"reset": "重置",
|
||||
"resetKeybindingsTooltip": "将快捷键重置为默认",
|
||||
"resetAll": "重置所有",
|
||||
"resetAllKeybindingsTooltip": "将所有键绑定重置为默认",
|
||||
"restart": "重新启动",
|
||||
"resultsCount": "找到 {count} 个结果",
|
||||
"save": "保存",
|
||||
|
||||
@@ -278,7 +278,7 @@ export const useKeybindingStore = defineStore('keybinding', () => {
|
||||
return true
|
||||
}
|
||||
|
||||
function resetKeybindings() {
|
||||
function resetAllKeybindings() {
|
||||
userKeybindings.value = {}
|
||||
userUnsetKeybindings.value = {}
|
||||
}
|
||||
@@ -306,7 +306,7 @@ export const useKeybindingStore = defineStore('keybinding', () => {
|
||||
addUserKeybinding,
|
||||
unsetKeybinding,
|
||||
updateKeybindingOnCommand,
|
||||
resetKeybindings,
|
||||
resetAllKeybindings,
|
||||
isCommandKeybindingModified
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user