Merge branch '21666-provision-test-improvement'
[arvados.git] / services / workbench2 / src / store / not-found-panel / not-found-panel-action.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { Dispatch } from "redux";
6 import { dialogActions } from 'store/dialog/dialog-actions';
7
8 export const NOT_FOUND_DIALOG_NAME = 'notFoundDialog';
9
10 export const openNotFoundDialog = () =>
11     (dispatch: Dispatch) => {
12         dispatch(dialogActions.OPEN_DIALOG({
13             id: NOT_FOUND_DIALOG_NAME,
14             data: {},
15         }));
16     };