refs #master Fix test and hide details panel from ssh-keys panel
[arvados.git] / src / store / app-info / app-info-actions.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { unionize, ofType, UnionOf } from '~/common/unionize';
6 import { Dispatch } from 'redux';
7 import { RootState } from '~/store/store';
8 import { ServiceRepository } from '~/services/services';
9 import { getBuildInfo } from '~/common/app-info';
10
11 export const appInfoActions = unionize({
12     SET_BUILD_INFO: ofType<string>()
13 });
14
15 export type AppInfoAction = UnionOf<typeof appInfoActions>;
16
17 export const setBuildInfo = () => 
18     (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) =>
19         dispatch(appInfoActions.SET_BUILD_INFO(getBuildInfo()));
20
21
22