]> git.proxmox.com Git - ceph.git/blame - ceph/src/pybind/mgr/dashboard/frontend/src/app/shared/models/cd-table-fetch-data-context.ts
import 15.2.9
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / shared / models / cd-table-fetch-data-context.ts
CommitLineData
11fdf7f2
TL
1export class CdTableFetchDataContext {
2 errorConfig = {
3 resetData: true, // Force data table to show no data
4 displayError: true // Show an error panel above the data table
5 };
6
7 /**
8 * The function that should be called from within the error handler
9 * of the 'fetchData' function to display the error panel and to
10 * reset the data table to the correct state.
11 */
12 error: Function;
13
14 constructor(error: () => void) {
15 this.error = error;
16 }
17}