Merge pull request #5954 from vvlladd28/improvemen/persistent-table/renaim-double-text

[3.3.3] UI: Rename Persistent table widget; Fixed double text in data not resolve
This commit is contained in:
Igor Kulikov 2022-01-26 19:44:05 +02:00 committed by GitHub
commit 888e8b5b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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(() => {