feat: show macro usage count (#1030)

* feat: show macro usage count

* feat: show macro reference count only when ALT key hold down

* fix: the macro reference help text
This commit is contained in:
Róbert Kiss
2019-09-03 21:42:27 +02:00
committed by László Monda
parent 9844645409
commit fef24613e4
10 changed files with 110 additions and 8 deletions

View File

@@ -1 +1,3 @@
export * from './last-edited-key';
export * from './macro-menu-item';
export * from './side-menu-page-state';

View File

@@ -0,0 +1,5 @@
export interface MacroMenuItem {
id: number;
name: string;
usageCount: number;
}

View File

@@ -1,4 +1,5 @@
import { Keymap, Macro } from 'uhk-common';
import { MacroMenuItem } from './macro-menu-item';
export interface SideMenuPageState {
showAddonMenu: boolean;
@@ -6,6 +7,7 @@ export interface SideMenuPageState {
updatingFirmware: boolean;
deviceName: string;
keymaps: Keymap[];
macros: Macro[];
macros: MacroMenuItem[];
restoreUserConfiguration: boolean;
macroUsageCountVisible: boolean;
}