diff --git a/src/components/analyses/landing/AnalysisSubmissionLanding.js b/src/components/analyses/landing/AnalysisSubmissionLanding.js index c9a9dfd36..486f9a6db 100644 --- a/src/components/analyses/landing/AnalysisSubmissionLanding.js +++ b/src/components/analyses/landing/AnalysisSubmissionLanding.js @@ -3,6 +3,7 @@ import React from "react"; import { useTranslation } from "i18n"; import { useMutation, useQuery, useQueryClient } from "react-query"; import { + ANALYSIS_HISTORY_QUERY_KEY, ANALYSES_LISTING_QUERY_KEY, cancelAnalysis, extendVICEAnalysisTimeLimit, @@ -162,6 +163,7 @@ export default function AnalysisSubmissionLanding(props) { const refreshAnalysis = () => { queryClient.invalidateQueries([ANALYSES_LISTING_QUERY_KEY, id]); + queryClient.invalidateQueries([ANALYSIS_HISTORY_QUERY_KEY, id]); }; const { isFetching, error: analysisFetchError } = useQuery({ diff --git a/src/components/analyses/toolbar/Toolbar.js b/src/components/analyses/toolbar/Toolbar.js index 2109b3665..e12838d23 100644 --- a/src/components/analyses/toolbar/Toolbar.js +++ b/src/components/analyses/toolbar/Toolbar.js @@ -14,7 +14,7 @@ import { allowAnalysesCancel } from "../utils"; import { useConfig } from "contexts/config"; -import AppsTypeFilter from "components/apps/AppsTypeFilter"; +import AppsTypeFilter, { getFilters } from "components/apps/AppsTypeFilter"; import buildID from "components/utils/DebugIDUtil"; @@ -171,6 +171,17 @@ function AnalysesToolbar(props) { hasSelection && allowAnalysesCancel(selectedAnalyses, username, config); const { isSmDown, isMdDown } = useBreakpoints(); + const typeFilter = ( + + ); + return ( <> @@ -182,13 +193,7 @@ function AnalysesToolbar(props) { classes={classes} handleFilterChange={handleOwnershipFilterChange} /> - + {typeFilter} )} {viewFiltered && ( @@ -300,13 +305,7 @@ function AnalysesToolbar(props) { handleFilterChange={handleOwnershipFilterChange} />
- + {typeFilter}