Skip to content

Commit

Permalink
feat(quickactions): add customvariable support
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Jul 19, 2021
1 parent 324479d commit b1e962f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/database/entity/dashboard.ts
Expand Up @@ -6,6 +6,12 @@ export type CommandItem = QuickActions.defaultAttributes & {
command: string,
},
};
export type CustomVariableItem = QuickActions.defaultAttributes & {
type: 'customvariable',
options: QuickActions.defaultOptions & {
customvariable: string,
},
};
export declare namespace QuickActions {
type defaultAttributes = {
id: string,
Expand All @@ -18,7 +24,7 @@ export declare namespace QuickActions {
color: string,
};

type Item = CommandItem;
type Item = CommandItem | CustomVariableItem;
}

export const QuickAction = new EntitySchema<Readonly<Required<QuickActions.Item>>>({
Expand Down

0 comments on commit b1e962f

Please sign in to comment.