UI: Rename Persistent table widget; Fixed double text in data not resolve; Rename widget settings

This commit is contained in:
Vladyslav_Prykhodko 2022-01-24 17:09:04 +02:00
parent 29ccfaa23e
commit 6c32e4c767
3 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -107,7 +107,7 @@
<mat-row *matRowDef="let column; columns: displayedColumns"
[fxShow]="!persistentDatasource.dataLoading"></mat-row>
</table>
<span [fxShow]="(persistentDatasource.isEmpty() | async) && !persistentDatasource.dataLoading"
<span [fxShow]="(persistentDatasource.isEmpty() | async) && !persistentDatasource.dataLoading && hasData"
fxLayoutAlign="center center"
class="no-data-found">{{ noDataDisplayMessageText }}</span>
<span [fxShow]="persistentDatasource.dataLoading"

View File

@ -134,6 +134,7 @@ export class PersistentTableComponent extends PageComponent implements OnInit {
public actionCellButtonAction: PersistentTableWidgetActionDescriptor[] = [];
public displayedColumns: string[];
public hidePageSize = false;
hasData = false;
constructor(protected store: Store<AppState>,
private elementRef: ElementRef,
@ -154,6 +155,7 @@ export class PersistentTableComponent extends PageComponent implements OnInit {
this.widgetConfig = this.ctx.widgetConfig;
this.subscription = this.ctx.defaultSubscription;
this.initializeConfig();
this.hasData = this.ctx.defaultSubscription.hasResolvedData;
this.ctx.updateWidgetParams();
if (this.displayPagination) {
this.widgetResize$ = new ResizeObserver(() => {