forked from chatwoot/chatwoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Filtering conversations and contacts with custom attributes (c…
- Loading branch information
Showing
16 changed files
with
443 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ export default { | |
}, | ||
value: { | ||
type: Date, | ||
default: () => [], | ||
default: [], | ||
}, | ||
}, | ||
|
75 changes: 75 additions & 0 deletions
75
app/javascript/dashboard/components/widgets/FilterInput/FilterOperatorTypes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
export const OPERATOR_TYPES_1 = [ | ||
{ | ||
value: 'equal_to', | ||
label: 'Equal to', | ||
}, | ||
{ | ||
value: 'not_equal_to', | ||
label: 'Not equal to', | ||
}, | ||
]; | ||
|
||
export const OPERATOR_TYPES_2 = [ | ||
{ | ||
value: 'equal_to', | ||
label: 'Equal to', | ||
}, | ||
{ | ||
value: 'not_equal_to', | ||
label: 'Not equal to', | ||
}, | ||
{ | ||
value: 'is_present', | ||
label: 'Is present', | ||
}, | ||
{ | ||
value: 'is_not_present', | ||
label: 'Is not present', | ||
}, | ||
]; | ||
|
||
export const OPERATOR_TYPES_3 = [ | ||
{ | ||
value: 'equal_to', | ||
label: 'Equal to', | ||
}, | ||
{ | ||
value: 'not_equal_to', | ||
label: 'Not equal to', | ||
}, | ||
{ | ||
value: 'contains', | ||
label: 'Contains', | ||
}, | ||
{ | ||
value: 'does_not_contain', | ||
label: 'Does not contain', | ||
}, | ||
]; | ||
|
||
export const OPERATOR_TYPES_4 = [ | ||
{ | ||
value: 'equal_to', | ||
label: 'Equal to', | ||
}, | ||
{ | ||
value: 'not_equal_to', | ||
label: 'Not equal to', | ||
}, | ||
{ | ||
value: 'is_present', | ||
label: 'Is present', | ||
}, | ||
{ | ||
value: 'is_not_present', | ||
label: 'Is not present', | ||
}, | ||
{ | ||
value: 'is_greater_than', | ||
label: 'Is greater than', | ||
}, | ||
{ | ||
value: 'is_lesser_than', | ||
label: 'Is lesser than', | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.