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:
Benjamin Lu
2025-04-11 20:01:28 -04:00
committed by GitHub
parent b449dbd26b
commit 009c389607
9 changed files with 25 additions and 18 deletions

View File

@@ -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
})
}