summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/stores
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-06-26 16:51:57 +0100
committerPhil Hughes <me@iamphill.com>2018-06-27 10:44:15 +0100
commit093e43a01157854f0ef1ce435e7935feba041e27 (patch)
tree9add61cd927b323257ae36bc17729cd55d9d9bb6 /app/assets/javascripts/ide/stores
parent93e5d8c7520b21561b96cbbe8134283d3aa728f9 (diff)
downloadgitlab-ce-093e43a01157854f0ef1ce435e7935feba041e27.tar.gz
:white_check_mark: store specs
Diffstat (limited to 'app/assets/javascripts/ide/stores')
-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(() => {});