From dacedd65e0fcfc26cb7b878ba31e21688be98f77 Mon Sep 17 00:00:00 2001 From: Andrew Courtice Date: Mon, 20 Mar 2023 11:43:54 +1000 Subject: [PATCH] feat(history-extension): added history details to vue devtools --- extensions/history/src/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extensions/history/src/index.ts b/extensions/history/src/index.ts index 2fcb078..81dbad2 100644 --- a/extensions/history/src/index.ts +++ b/extensions/history/src/index.ts @@ -83,6 +83,11 @@ export default function historyExtension(options?: Par return (store: InternalStore) => { store.register('extensions', 'history', () => _options); + store.register('history', 'details', () => ({ + canUndo: canUndo(), + canRedo: canRedo(), + groups: historyState.groups, + })); const { startTrace,