Skip to content

Commit 6a5eda3

Browse files
committed
refactor(add-row): Update grids templates to properly check for add row.
1 parent 5f89250 commit 6a5eda3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

projects/igniteui-angular/src/lib/grids/grid/grid.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@
247247
<div class="igx-banner__message">
248248
<span class="igx-banner__text">
249249
<ng-container
250-
*ngTemplateOutlet="this.crudService.row?.isAddRow ? rowAddText : rowEditText ? rowEditText : defaultRowEditText;
251-
context: { $implicit: !this.crudService.row?.isAddRow ? rowChangesCount : null }">
250+
*ngTemplateOutlet="this.crudService.row?.getClassName() === 'IgxAddRow' ? rowAddText : rowEditText ? rowEditText : defaultRowEditText;
251+
context: { $implicit: this.crudService.row?.getClassName() !== 'IgxAddRow' ? rowChangesCount : null }">
252252
</ng-container>
253253
</span>
254254
</div>

projects/igniteui-angular/src/lib/grids/hierarchical-grid/hierarchical-grid.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@
199199
<div class="igx-banner__message">
200200
<span class="igx-banner__text">
201201
<ng-container
202-
*ngTemplateOutlet="this.crudService.row?.isAddRow ? rowAddText : rowEditText ? rowEditText : defaultRowEditText;
203-
context: { $implicit: !this.crudService.row?.isAddRow ? rowChangesCount : null }">
202+
*ngTemplateOutlet="this.crudService.row?.getClassName() === 'IgxAddRow' ? rowAddText : rowEditText ? rowEditText : defaultRowEditText;
203+
context: { $implicit: this.crudService.row?.getClassName() !== 'IgxAddRow' ? rowChangesCount : null }">
204204
</ng-container>
205205
</span>
206206
</div>

projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188
<div class="igx-banner__message">
189189
<span class="igx-banner__text">
190190
<ng-container
191-
*ngTemplateOutlet="this.crudService.row?.isAddRow ? rowAddText : rowEditText ? rowEditText : defaultRowEditText;
192-
context: { $implicit: !this.crudService.row?.isAddRow ? rowChangesCount : null }">
191+
*ngTemplateOutlet="this.crudService.row?.getClassName() === 'IgxAddRow' ? rowAddText : rowEditText ? rowEditText : defaultRowEditText;
192+
context: { $implicit: this.crudService.row?.getClassName() !== 'IgxAddRow' ? rowChangesCount : null }">
193193
</ng-container>
194194
</span>
195195
</div>

0 commit comments

Comments
 (0)