mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-20 17:03:42 +00:00
fix: chord conflict shows "undefined"
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
</script>
|
||||
|
||||
<nav>
|
||||
{#each paths as { href, title, icon }, i}
|
||||
{#each paths as { href, title, icon }}
|
||||
<a {href} class:active={$page.url.pathname.startsWith(href)}>
|
||||
<span class="icon">{icon}</span>
|
||||
{title}
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
syncStatus,
|
||||
} from "$lib/serial/connection";
|
||||
import { askForConfirmation } from "$lib/dialogs/confirm-dialog";
|
||||
import { KEYMAP_CODES } from "$lib/serial/keymap-codes";
|
||||
|
||||
function undo(event: MouseEvent) {
|
||||
if (event.shiftKey) {
|
||||
@@ -56,13 +55,10 @@
|
||||
existingChord !== undefined &&
|
||||
!(await askForConfirmation(
|
||||
$LL.configure.chords.conflict.TITLE(),
|
||||
$LL.configure.chords.conflict.DESCRIPTION(
|
||||
actions
|
||||
.map((it) => `<kbd>${KEYMAP_CODES.get(it)?.id}</kbd>`)
|
||||
.join(" "),
|
||||
),
|
||||
$LL.configure.chords.conflict.DESCRIPTION(),
|
||||
$LL.configure.chords.conflict.CONFIRM(),
|
||||
$LL.configure.chords.conflict.ABORT(),
|
||||
actions.slice(0, actions.lastIndexOf(0)),
|
||||
))
|
||||
) {
|
||||
changes.update((changes) =>
|
||||
|
||||
Reference in New Issue
Block a user