feat: add info for current and after next save action

This commit is contained in:
2023-12-08 23:04:38 +01:00
parent f9a63a8724
commit fe850f47ec
4 changed files with 16 additions and 2 deletions

View File

@@ -8,6 +8,7 @@
import {action} from "$lib/title"
export let currentAction: number | undefined = undefined
export let nextAction: number | undefined = undefined
const index = new Index({tokenize: "full"})
for (const action of Object.values(KEYMAP_CODES)) {
@@ -121,6 +122,12 @@
<h3>{$LL.actionSearch.CURRENT_ACTION()}</h3>
<ActionListItem id={currentAction} />
</aside>
<aside>
{#if nextAction}
<h3>{$LL.actionSearch.NEXT_ACTION()}</h3>
<ActionListItem id={nextAction} />
{/if}
</aside>
{/if}
<ul bind:this={resultList}>
{#if exact !== undefined}