[ACA-3907] Document list header should not appear on an empty list (#1657)

* show header based on data

* try another selector

Co-authored-by: Adina Parpalita <adina.parpalita@ness.com>
This commit is contained in:
Cilibiu Bogdan
2020-09-22 11:16:19 +03:00
committed by GitHub
parent 9b0c31073a
commit 68594cbbc0
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ export class DataTable extends Component {
.adf-datatable__header--sorted-asc .adf-datatable-cell-value, .adf-datatable__header--sorted-asc .adf-datatable-cell-value,
.adf-datatable__header--sorted-desc .adf-datatable-cell-value .adf-datatable__header--sorted-desc .adf-datatable-cell-value
`, `,
row: '.adf-datatable-row[role]', row: '.adf-datatable-row[data-automation-id^="datatable-row"]',
cell: '.adf-datatable-cell-container', cell: '.adf-datatable-cell-container',
lockOwner: '.aca-locked-by', lockOwner: '.aca-locked-by',
searchResultsRow: 'aca-search-results-row', searchResultsRow: 'aca-search-results-row',

View File

@@ -65,7 +65,7 @@ export abstract class PageComponent implements OnInit, OnDestroy, OnChanges {
canUpdateNode = false; canUpdateNode = false;
canUpload = false; canUpload = false;
nodeResult: NodePaging; nodeResult: NodePaging;
showHeader = ShowHeaderMode.Always; showHeader = ShowHeaderMode.Data;
filterSorting = 'name-asc'; filterSorting = 'name-asc';
protected subscriptions: Subscription[] = []; protected subscriptions: Subscription[] = [];