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:
committed by
László Monda
parent
9844645409
commit
fef24613e4
@@ -1 +1,3 @@
|
||||
export * from './last-edited-key';
|
||||
export * from './macro-menu-item';
|
||||
export * from './side-menu-page-state';
|
||||
|
||||
5
packages/uhk-web/src/app/models/macro-menu-item.ts
Normal file
5
packages/uhk-web/src/app/models/macro-menu-item.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export interface MacroMenuItem {
|
||||
id: number;
|
||||
name: string;
|
||||
usageCount: number;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user