diff --git a/ui/src/app/dashboard/view/SourcesTab.js b/ui/src/app/dashboard/view/SourcesTab.js index d60218f08..76c5d3770 100644 --- a/ui/src/app/dashboard/view/SourcesTab.js +++ b/ui/src/app/dashboard/view/SourcesTab.js @@ -5,10 +5,14 @@ import SourceList from '../../metadata/domain/source/component/SourceList'; import { useMetadataEntities, useMetadataEntity } from '../../metadata/hooks/api'; import { Search } from '../component/Search'; +import { NotificationContext, createNotificationAction } from '../../notifications/hoc/Notifications'; + const searchProps = ['serviceProviderName', 'entityId', 'createdBy']; export function SourcesTab () { + const { dispatch } = React.useContext(NotificationContext); + const [sources, setSources] = React.useState([]); const { get, response } = useMetadataEntities('source', { @@ -37,6 +41,7 @@ export function SourcesTab () { idOfOwner: group }); if (updater.response.ok) { + dispatch(createNotificationAction(`Updated group successfully.`)); loadSources(); } }