You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On hovering over a CompoundInputFilter, the z* select option shows the tooltip incorrectly.
Steps to Reproduce
Do not use the TranslateService, so it defaults to use the locale constants.
For a string field, CompoundInputFilter will now show z* tooltip to be Contains
eg: filter: {
model: Filters.compoundInputText
}
Expected Behavior
For a CompoundInputFilter of String type, the z* description should be set to Ends with
Current Behavior
For a CompoundInputFilter of String type, the z* description shows Contains in that
In the above line, getOptionValues() is returning "ends with" description incorrectly, It should be as follows : { operator: '*z' as OperatorString, description: this.translate && this.translate.currentLang && this.translate.instant && this.translate.instant(`${translationPrefix}ENDS_WITH`) || this._locales && this._locales.TEXT_ENDS_WITH}
Code Sample
The text was updated successfully, but these errors were encountered:
Do you mean that it shows the text from the this._locales.TEXT_CONTAINS which is "Contains". Is that what you mean? That was a mistake, it should be this._locales.TEXT_ENDS_WITH
I'm submitting a Bug report
Your Environment
Describe the Bug
On hovering over a CompoundInputFilter, the z* select option shows the tooltip incorrectly.
Steps to Reproduce
Do not use the TranslateService, so it defaults to use the locale constants.
For a string field, CompoundInputFilter will now show z* tooltip to be Contains
eg: filter: {
model: Filters.compoundInputText
}
Expected Behavior
For a CompoundInputFilter of String type, the z* description should be set to Ends with
Current Behavior
For a CompoundInputFilter of String type, the z* description shows Contains in that
Possible Solution
https://github.com/ghiscoding/Angular-Slickgrid/blob/master/src/app/modules/angular-slickgrid/filters/compoundInputFilter.ts#L179
In the above line, getOptionValues() is returning "ends with" description incorrectly, It should be as follows :
{ operator: '*z' as OperatorString, description: this.translate && this.translate.currentLang && this.translate.instant && this.translate.instant(`${translationPrefix}ENDS_WITH`) || this._locales && this._locales.TEXT_ENDS_WITH}
Code Sample
The text was updated successfully, but these errors were encountered: