From 1ff74014e9933a15fcad0f835c3206e746c54a50 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Wed, 18 Oct 2017 13:26:47 +0200 Subject: reload branch status when reload issues --- server/sonar-web/src/main/js/apps/issues/components/App.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/apps/issues/components/App.js b/server/sonar-web/src/main/js/apps/issues/components/App.js index c11071c20de..864ca2b5d09 100644 --- a/server/sonar-web/src/main/js/apps/issues/components/App.js +++ b/server/sonar-web/src/main/js/apps/issues/components/App.js @@ -57,7 +57,7 @@ import handleRequiredAuthentication from '../../../app/utils/handleRequiredAuthe import ListFooter from '../../../components/controls/ListFooter'; import EmptySearch from '../../../components/common/EmptySearch'; import ScreenPositionHelper from '../../../components/common/ScreenPositionHelper'; -import { getBranchName } from '../../../helpers/branches'; +import { getBranchName, isShortLivingBranch } from '../../../helpers/branches'; import { translate, translateWithParameters } from '../../../helpers/l10n'; import { scrollToElement } from '../../../helpers/scrolling'; /*:: import type { Issue } from '../../../components/issue/types'; */ @@ -71,6 +71,7 @@ export type Props = { currentUser: CurrentUser, fetchIssues: (query: RawQuery, requestOrganizations?: boolean) => Promise<*>, location: { pathname: string, query: RawQuery }, + onBranchesChange: () => void, organization?: { key: string }, router: { push: ({ pathname: string, query?: RawQuery }) => void, @@ -684,6 +685,9 @@ export default class App extends React.PureComponent { handleReload = () => { this.fetchFirstIssues(); + if (isShortLivingBranch(this.props.branch)) { + this.props.onBranchesChange(); + } }; handleReloadAndOpenFirst = () => { -- cgit v1.2.3