Make use of ahell-quote lib in command window, add copy command button
[arvados-workbench2.git] / src / store / progress-indicator / progress-indicator-reducer.ts
index 849906b53a300786d981d7ed83e2b3ecc70bf7bd..89885afb526ee7b904855e2bfab15c2f8ea8b5fe 100644 (file)
@@ -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);