Skip to content

Commit

Permalink
feat(manager-core-api): update filter category enum
Browse files Browse the repository at this point in the history
ref: MANAGER-15088

Signed-off-by: Alex Boungnaseng <[email protected]>
  • Loading branch information
aboungnaseng-ovhcloud committed Dec 2, 2024
1 parent fcff53e commit 4266b0b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions packages/manager/core/api/src/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ export type Filter = {
comparator: FilterComparator;
};

export enum FilterTypeCategories {
Numeric = 'Numeric',
String = 'String',
Date = 'Date',
Boolean = 'Boolean',
Options = 'Options',
}

export const FilterCategories = {
Numeric: [
FilterComparator.IsEqual,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ export default function Listing() {

// Code to remove
const comparatorType = {
number: FilterCategories.Numeric,
data: FilterCategories.Date,
string: FilterCategories.String,
Number: FilterCategories.Numeric,
Date: FilterCategories.Date,
String: FilterCategories.String,
};

// Code to remove and declare definition columns in const variable
Expand Down

0 comments on commit 4266b0b

Please sign in to comment.