1 import { NgZone } from '@angular/core';
3 import { TableStatus } from './table-status';
5 export class ListWithDetails {
8 tableStatus: TableStatus;
10 constructor(protected ngZone?: NgZone) {}
12 setExpandedRow(expandedRow: any) {
13 this.expandedRow = expandedRow;
16 setTableRefreshTimeout() {
17 clearTimeout(this.staleTimeout);
18 this.ngZone.runOutsideAngular(() => {
19 this.staleTimeout = window.setTimeout(() => {
20 this.ngZone.run(() => {
21 this.tableStatus = new TableStatus(
23 $localize`The user list data might be stale. If needed, you can manually reload it.`