-export const createCollectionTag = (data: TagProperty) =>
- async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
- const item = getState().collectionPanel.item;
- const uuid = item ? item.uuid : '';
- try {
- if (item) {
- item.properties[data.key] = data.value;
- const updatedCollection = await services.collectionService.update(uuid, item);
- dispatch(resourcesActions.SET_RESOURCES([updatedCollection]));
- dispatch(snackbarActions.OPEN_SNACKBAR({ message: "Tag has been successfully added.", hideDuration: 2000 }));
- return updatedCollection;
- }
- return;
- } catch (e) {
- return;
- }
- };
-
-export const deleteCollectionTag = (key: string) =>
- async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
- const item = getState().collectionPanel.item;
- const uuid = item ? item.uuid : '';
+export const navigateToProcess = (uuid: string) =>
+ async (dispatch: Dispatch<any>, getState: () => RootState, services: ServiceRepository) => {