X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/d9c91ff458dfedd01fb2d5a86e60e054f5a87d10..06454ba23d896ba99d1f8ddca101088b96806966:/src/store/progress-indicator/progress-indicator-reducer.ts diff --git a/src/store/progress-indicator/progress-indicator-reducer.ts b/src/store/progress-indicator/progress-indicator-reducer.ts index 849906b5..89885afb 100644 --- a/src/store/progress-indicator/progress-indicator-reducer.ts +++ b/src/store/progress-indicator/progress-indicator-reducer.ts @@ -27,3 +27,7 @@ export const progressIndicatorReducer = (state: ProgressIndicatorState = initial export function isSystemWorking(state: ProgressIndicatorState): boolean { return state.length > 0 && state.reduce((working, p) => working ? true : p.working, false); } + +export const getProgressIndicator = (id: string) => + (state: ProgressIndicatorState) => + state.find(state => state.id === id);