dashboard.ts 596 B

1234567891011121314151617181920212223242526272829
  1. import { DashboardAcl } from './acl';
  2. export interface MutableDashboard {
  3. meta: {
  4. fullscreen: boolean;
  5. isEditing: boolean;
  6. };
  7. }
  8. export enum DashboardRouteInfo {
  9. Old = 'old-dashboard',
  10. Home = 'home-dashboard',
  11. New = 'new-dashboard',
  12. Normal = 'normal-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. permissions: DashboardAcl[] | null;
  25. }