diff options
author | Phil Hughes <me@iamphill.com> | 2018-06-26 11:58:17 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-27 10:44:14 +0100 |
commit | 702440ee489ff47f5997fbef48622ca7028b4ac2 (patch) | |
tree | 415b6c7057e8795da2cec54b4a08d09f639352b4 /app/assets/javascripts/ide/stores | |
parent | 6157cd29c172fa0c345c7523450478241b7bc1e3 (diff) | |
download | gitlab-ce-702440ee489ff47f5997fbef48622ca7028b4ac2.tar.gz |
:speech_balloon: improve text in error message
Diffstat (limited to 'app/assets/javascripts/ide/stores')
-rw-r--r-- | app/assets/javascripts/ide/stores/actions/project.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/ide/stores/actions/project.js b/app/assets/javascripts/ide/stores/actions/project.js index a99ac4fc98c..326d284ffcf 100644 --- a/app/assets/javascripts/ide/stores/actions/project.js +++ b/app/assets/javascripts/ide/stores/actions/project.js @@ -97,7 +97,7 @@ export const createNewBranchFromDefault = ({ state, getters }, branch) => branch, }) .then(() => { - location.reload(); + window.location.reload(); // this forces the loading icon to spin whilst the page is reloading return new Promise(() => {}); @@ -107,14 +107,14 @@ export const createNewBranchFromDefault = ({ state, getters }, branch) => export const showBranchNotFoundError = ({ dispatch }, branchId) => { dispatch('setErrorMessage', { text: sprintf( - __('Branch %{branchName} was not found in project.'), + __("Branch %{branchName} was not found in project's repository."), { branchName: `<strong>${_.escape(branchId)}</strong>`, }, false, ), action: 'createNewBranchFromDefault', - actionText: 'Create branch', + actionText: __('Create branch'), actionPayload: branchId, }); }; |