fix no permission template (#4256)

rename correctly template demo
This commit is contained in:
Eugenio Romano
2019-02-04 21:05:07 +00:00
committed by GitHub
parent 16b6c1dcb2
commit bb770a5df9
9 changed files with 30 additions and 13 deletions

View File

@@ -641,7 +641,7 @@ export class DataTableComponent implements AfterContentInit, OnChanges, DoCheck,
}
isHeaderVisible() {
return this.showHeader && !this.loading && !this.isEmpty();
return this.showHeader && !this.loading && !this.isEmpty() && !this.noPermission;
}
private emitRowSelectionEvent(name: string, row: DataRow) {