History

Undo Stack ({history.undoStack.length})

{#if history.undoStack.length === 0}

No actions to undo

{:else}
    {#each history.undoStack as entry, index (`UNDO:${entry.command.kind}:${entry.timestamp}`)}
  • #{history.undoStack.length - index}
  • {/each}
{/if}

Redo Stack ({history.redoStack.length})

{#if history.redoStack.length === 0}

No actions to redo

{:else}
    {#each history.redoStack as entry, index (`REDO:${entry.command.kind}:${entry.timestamp}`)}
  • #{index + 1}
  • {/each}
{/if}