Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-06-26 18:51:57 +0300
committerPhil Hughes <me@iamphill.com>2018-06-27 12:44:15 +0300
commit093e43a01157854f0ef1ce435e7935feba041e27 (patch)
tree9add61cd927b323257ae36bc17729cd55d9d9bb6 /app
parent93e5d8c7520b21561b96cbbe8134283d3aa728f9 (diff)
:white_check_mark: store specs
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/ide/stores/actions/project.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/stores/actions/project.js b/app/assets/javascripts/ide/stores/actions/project.js
index 20fd12596f9..54785770e7f 100644
--- a/app/assets/javascripts/ide/stores/actions/project.js
+++ b/app/assets/javascripts/ide/stores/actions/project.js
@@ -4,6 +4,7 @@ import { __, sprintf } from '~/locale';
import service from '../../services';
import api from '../../../api';
import * as types from '../mutation_types';
+import { refreshCurrentPage } from '../../../lib/utils/url_utility';
export const getProjectData = ({ commit, state }, { namespace, projectId, force = false } = {}) =>
new Promise((resolve, reject) => {
@@ -97,7 +98,7 @@ export const createNewBranchFromDefault = ({ state, getters }, branch) =>
branch,
})
.then(() => {
- window.location.reload();
+ refreshCurrentPage();
// this forces the loading icon to spin whilst the page is reloading
return new Promise(() => {});