-
Notifications
You must be signed in to change notification settings - Fork 0
feat: option set option for no value #373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
6a94bad
9c23df6
fec3469
b375db7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| .noValueOption { | ||
| color: var(--colors-grey700); | ||
| } | ||
|
|
||
| :global(.highlighted) > .noValueOption { | ||
| color: inherit; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -166,6 +166,8 @@ export const FALSE_VALUE: BooleanValue = '0' | |
| export const NULL_VALUE: BooleanValue = 'NV' | ||
| export const TRUE_VALUE: BooleanValue = '1' | ||
| export const OPERATOR_IN: QueryOperator = 'IN' | ||
| export const NO_VALUE_OPTION_CODE = 'D2__NOVALUE' | ||
| export const getNoValueOptionName = (): string => i18n.t('No value') | ||
|
Comment on lines
+169
to
+170
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps this is the correct file, but I am thinking since this is about the option set no value option , that...
Aside: looking at this file now, I guess a lot of stuff in
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alright, I'll move it for now 👍
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Though, |
||
| export const OPERATOR_EQUAL: QueryOperator = 'EQ' | ||
| export const OPERATOR_EMPTY = `EQ:${NULL_VALUE}` | ||
| export const OPERATOR_NOT_EMPTY = `NE:${NULL_VALUE}` | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not clear why the global style is also needed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HendrikThePendric It's to make sure the text is white when the item is selected (green background). Otherwise it gets a grey700 text color. Let me know if there is a better way to do it.