X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/3ddd45b007768a39591cd116b4a213cd39019e0c..50ec33497a4b0a9d6f262fa5a0176f2952ec1f6c:/src/store/link-panel/link-panel-actions.ts diff --git a/src/store/link-panel/link-panel-actions.ts b/src/store/link-panel/link-panel-actions.ts index 7cbc5073..52ac6a21 100644 --- a/src/store/link-panel/link-panel-actions.ts +++ b/src/store/link-panel/link-panel-actions.ts @@ -3,14 +3,14 @@ // SPDX-License-Identifier: AGPL-3.0 import { Dispatch } from 'redux'; -import { RootState } from '~/store/store'; -import { ServiceRepository } from '~/services/services'; -import { bindDataExplorerActions } from '~/store/data-explorer/data-explorer-action'; -import { setBreadcrumbs } from '~/store/breadcrumbs/breadcrumbs-actions'; -import { dialogActions } from '~/store/dialog/dialog-actions'; -import { LinkResource } from '~/models/link'; -import { getResource } from '~/store/resources/resources'; -import { snackbarActions } from '~/store/snackbar/snackbar-actions'; +import { RootState } from 'store/store'; +import { ServiceRepository } from 'services/services'; +import { bindDataExplorerActions } from 'store/data-explorer/data-explorer-action'; +import { setBreadcrumbs } from 'store/breadcrumbs/breadcrumbs-actions'; +import { dialogActions } from 'store/dialog/dialog-actions'; +import { LinkResource } from 'models/link'; +import { getResource } from 'store/resources/resources'; +import {snackbarActions, SnackbarKind} from 'store/snackbar/snackbar-actions'; export const LINK_PANEL_ID = "linkPanelId"; export const linkPanelActions = bindDataExplorerActions(LINK_PANEL_ID); @@ -46,11 +46,11 @@ export const openLinkRemoveDialog = (uuid: string) => export const removeLink = (uuid: string) => async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { - dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Removing ...' })); + dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Removing ...', kind: SnackbarKind.INFO })); try { await services.linkService.delete(uuid); dispatch(linkPanelActions.REQUEST_ITEMS()); - dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Link has been successfully removed.', hideDuration: 2000 })); + dispatch(snackbarActions.OPEN_SNACKBAR({ message: 'Link has been successfully removed.', hideDuration: 2000, kind: SnackbarKind.SUCCESS })); } catch (e) { return; }