Skip to content

Commit

Permalink
fix(grid): fix "This condition will always return 'false' [...]" #8978
Browse files Browse the repository at this point in the history
  • Loading branch information
Volen99 committed Sep 27, 2021
1 parent 493d424 commit 66876e7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions projects/igniteui-angular/src/lib/grids/cell.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
? (value | currency:currencyCode:column.pipeArgs.display:column.pipeArgs.digitsInfo:grid.locale)
: column.dataType === 'percent'
? (value | percent:column.pipeArgs.digitsInfo:grid.locale)
: column.dataType === 'boolean' && !this.formatter
: column.dataType === 'boolean'
? ''
: value
"
Expand All @@ -45,7 +45,7 @@
? (value | currency:currencyCode:column.pipeArgs.display:column.pipeArgs.digitsInfo:grid.locale)
: column.dataType === 'percent'
? (value | percent:column.pipeArgs.digitsInfo:grid.locale)
: column.dataType === 'boolean' && !this.formatter
: column.dataType === 'boolean'
? ''
: value
}}</div>
Expand All @@ -64,7 +64,7 @@
(value | number:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'date' ?
(value | date:column.pipeArgs.format:column.pipeArgs.timezone:grid.locale) : column.dataType === 'currency' ?
(value | currency:currencyCode:column.pipeArgs.display:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'percent' ?
(value | percent:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'boolean' && !this.formatter ?
(value | percent:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'boolean' ?
'' : value"
[row]="rowData"
[column]="this.column.field"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
? (value | currency:currencyCode:column.pipeArgs.display:column.pipeArgs.digitsInfo:grid.locale)
: column.dataType === 'percent'
? (value | percent:column.pipeArgs.digitsInfo:grid.locale)
: column.dataType === 'boolean' && !this.formatter
: column.dataType === 'boolean'
? ''
: value"
[row]="rowData"
Expand All @@ -25,7 +25,7 @@
? (value | number:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === "date"
? (value | date:column.pipeArgs.format:column.pipeArgs.timezone:grid.locale) : column.dataType === 'currency'
? (value | currency:currencyCode:column.pipeArgs.display:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'percent'
? (value | percent:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'boolean' && !this.formatter
? (value | percent:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'boolean'
? '' : value}}</div>

<igx-icon
Expand All @@ -43,8 +43,8 @@
(value | number:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'date' ?
(value | date:column.pipeArgs.format:column.pipeArgs.timezone:grid.locale) : column.dataType === 'currency'?
(value | currency:currencyCode:column.pipeArgs.display:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'percent' ?
(value | percent:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'boolean' && !this.formatter ? '' :
value"
(value | percent:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'boolean' ?
'' : value"
[row]="rowData"
[column]="this.column.field"
[containerClass]="'igx-grid__td-text'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
>
</ng-template>
<ng-template #defaultCell>
<div *ngIf="column.dataType !== 'boolean'"
<div
igxTextHighlight
class="igx-grid__td-text"
style="pointer-events: none;"
Expand Down Expand Up @@ -43,7 +43,7 @@
? (value | currency:currencyCode:column.pipeArgs.display:column.pipeArgs.digitsInfo:grid.locale)
: column.dataType === 'percent'
? (value | percent:column.pipeArgs.digitsInfo:grid.locale)
: column.dataType === 'boolean' && !this.formatter
: column.dataType === 'boolean'
? ''
: value
}}</div>
Expand All @@ -62,7 +62,7 @@
(value | number:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'date' ?
(value | date:column.pipeArgs.format:column.pipeArgs.timezone:grid.locale) : column.dataType === 'currency'?
(value | currency:currencyCode:column.pipeArgs.display:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'percent' ?
(value | percent:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'boolean' && !this.formatter ?
(value | percent:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'boolean' ?
'' : value"
[row]="rowData"
[column]="this.column.field"
Expand Down

0 comments on commit 66876e7

Please sign in to comment.