X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/2d03b09bc6f29ab1bfe42a2fd3a88f17189e6a52..ba244d0282e8dc6c21ebf6a509750717bae35783:/src/store/favorites/favorites-actions.ts diff --git a/src/store/favorites/favorites-actions.ts b/src/store/favorites/favorites-actions.ts index 3a16c562..1e23f35c 100644 --- a/src/store/favorites/favorites-actions.ts +++ b/src/store/favorites/favorites-actions.ts @@ -2,14 +2,15 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { unionize, ofType, UnionOf } from "~/common/unionize"; +import { unionize, ofType, UnionOf } from "common/unionize"; import { Dispatch } from "redux"; import { RootState } from "../store"; -import { getUserUuid } from "~/common/getuser"; +import { getUserUuid } from "common/getuser"; import { checkFavorite } from "./favorites-reducer"; import { snackbarActions, SnackbarKind } from "../snackbar/snackbar-actions"; -import { ServiceRepository } from "~/services/services"; -import { progressIndicatorActions } from "~/store/progress-indicator/progress-indicator-actions"; +import { ServiceRepository } from "services/services"; +import { progressIndicatorActions } from "store/progress-indicator/progress-indicator-actions"; +import { loadFavoritesTree} from "store/side-panel-tree/side-panel-tree-actions"; export const favoritesActions = unionize({ TOGGLE_FAVORITE: ofType<{ resourceUuid: string }>(), @@ -51,6 +52,7 @@ export const toggleFavorite = (resource: { uuid: string; name: string }) => kind: SnackbarKind.SUCCESS })); dispatch(progressIndicatorActions.STOP_WORKING("toggleFavorite")); + dispatch(loadFavoritesTree()) }) .catch((e: any) => { dispatch(progressIndicatorActions.STOP_WORKING("toggleFavorite"));