diff options
Diffstat (limited to 'sdnr/wt/odlux/framework/src/handlers')
-rw-r--r-- | sdnr/wt/odlux/framework/src/handlers/applicationStateHandler.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sdnr/wt/odlux/framework/src/handlers/applicationStateHandler.ts b/sdnr/wt/odlux/framework/src/handlers/applicationStateHandler.ts index 2a952b61e..bfb11c770 100644 --- a/sdnr/wt/odlux/framework/src/handlers/applicationStateHandler.ts +++ b/sdnr/wt/odlux/framework/src/handlers/applicationStateHandler.ts @@ -11,20 +11,22 @@ import { SnackbarItem } from '../models/snackbarItem'; export interface IApplicationState { title: string; - icon?: IconType; + appId?: string; + icon?: IconType; errors: ErrorInfo[]; snackBars: SnackbarItem[]; } -const applicationStateInit: IApplicationState = { title: "Loading ...", errors: [], snackBars:[] }; +const applicationStateInit: IApplicationState = { title: "Loading ...", errors: [], snackBars:[] }; export const applicationStateHandler: IActionHandler<IApplicationState> = (state = applicationStateInit, action) => { if (action instanceof SetTitleAction) { state = { ...state, title: action.title, - icon: action.icon + icon: action.icon, + appId: action.appId }; } else if (action instanceof AddErrorInfoAction) { state = { |