Skip to content

Commit

Permalink
Use union type instead of enum
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gubert committed Sep 25, 2024
1 parent 78dea0d commit 5aca574
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/definition/ui/IUIActionButtonDescriptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,13 @@ export interface IUActionButtonWhen {
hasAllRoles?: Array<string>;
}

export enum UIActionButtonCategory {
AI = 'ai',
DEFAULT = 'default',
}

export interface IUIActionButtonDescriptor {
actionId: string;
context: UIActionButtonContext;
labelI18n: string;
variant?: 'danger';
when?: IUActionButtonWhen;
category?: UIActionButtonCategory;
category?: 'default' | 'ai';
}
export interface IUIActionButton extends IUIActionButtonDescriptor {
appId: string;
Expand Down

0 comments on commit 5aca574

Please sign in to comment.