dashboard.ts 632 B

123456789101112131415161718192021222324252627282930
  1. import { DashboardAcl } from './acl';
  2. export interface MutableDashboard {
  3. meta: {
  4. fullscreen: boolean;
  5. isEditing: boolean;
  6. };
  7. }
  8. export enum DashboardRouteInfo {
  9. Home = 'home-dashboard',
  10. New = 'new-dashboard',
  11. Normal = 'normal-dashboard',
  12. Scripted = 'scripted-dashboard',
  13. }
  14. export enum DashboardLoadingState {
  15. NotStarted = 'Not started',
  16. Fetching = 'Fetching',
  17. Initializing = 'Initializing',
  18. Error = 'Error',
  19. Done = 'Done',
  20. }
  21. export interface DashboardState {
  22. model: MutableDashboard | null;
  23. loadingState: DashboardLoadingState;
  24. isLoadingSlow: boolean;
  25. permissions: DashboardAcl[] | null;
  26. }