UI: Rename Persistent table widget; Fixed double text in data not resolve; Rename widget settings
This commit is contained in:
parent
29ccfaa23e
commit
6c32e4c767
File diff suppressed because one or more lines are too long
@ -107,7 +107,7 @@
|
|||||||
<mat-row *matRowDef="let column; columns: displayedColumns"
|
<mat-row *matRowDef="let column; columns: displayedColumns"
|
||||||
[fxShow]="!persistentDatasource.dataLoading"></mat-row>
|
[fxShow]="!persistentDatasource.dataLoading"></mat-row>
|
||||||
</table>
|
</table>
|
||||||
<span [fxShow]="(persistentDatasource.isEmpty() | async) && !persistentDatasource.dataLoading"
|
<span [fxShow]="(persistentDatasource.isEmpty() | async) && !persistentDatasource.dataLoading && hasData"
|
||||||
fxLayoutAlign="center center"
|
fxLayoutAlign="center center"
|
||||||
class="no-data-found">{{ noDataDisplayMessageText }}</span>
|
class="no-data-found">{{ noDataDisplayMessageText }}</span>
|
||||||
<span [fxShow]="persistentDatasource.dataLoading"
|
<span [fxShow]="persistentDatasource.dataLoading"
|
||||||
|
|||||||
@ -134,6 +134,7 @@ export class PersistentTableComponent extends PageComponent implements OnInit {
|
|||||||
public actionCellButtonAction: PersistentTableWidgetActionDescriptor[] = [];
|
public actionCellButtonAction: PersistentTableWidgetActionDescriptor[] = [];
|
||||||
public displayedColumns: string[];
|
public displayedColumns: string[];
|
||||||
public hidePageSize = false;
|
public hidePageSize = false;
|
||||||
|
hasData = false;
|
||||||
|
|
||||||
constructor(protected store: Store<AppState>,
|
constructor(protected store: Store<AppState>,
|
||||||
private elementRef: ElementRef,
|
private elementRef: ElementRef,
|
||||||
@ -154,6 +155,7 @@ export class PersistentTableComponent extends PageComponent implements OnInit {
|
|||||||
this.widgetConfig = this.ctx.widgetConfig;
|
this.widgetConfig = this.ctx.widgetConfig;
|
||||||
this.subscription = this.ctx.defaultSubscription;
|
this.subscription = this.ctx.defaultSubscription;
|
||||||
this.initializeConfig();
|
this.initializeConfig();
|
||||||
|
this.hasData = this.ctx.defaultSubscription.hasResolvedData;
|
||||||
this.ctx.updateWidgetParams();
|
this.ctx.updateWidgetParams();
|
||||||
if (this.displayPagination) {
|
if (this.displayPagination) {
|
||||||
this.widgetResize$ = new ResizeObserver(() => {
|
this.widgetResize$ = new ResizeObserver(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user