diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-18 13:26:47 +0200 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-10-19 11:07:32 +0200 |
commit | 1ff74014e9933a15fcad0f835c3206e746c54a50 (patch) | |
tree | d596430d19edf863fee810d32e006c3603968fd3 /server | |
parent | 368011d4ac2fa6bc1d928e6d1169d5c2d470ef8c (diff) | |
download | sonarqube-1ff74014e9933a15fcad0f835c3206e746c54a50.tar.gz sonarqube-1ff74014e9933a15fcad0f835c3206e746c54a50.zip |
reload branch status when reload issues
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/components/App.js | 6 |
1 files changed, 5 insertions, 1 deletions
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 = () => { |