Commit 702440ee authored by Phil Hughes's avatar Phil Hughes

💬 improve text in error message

parent 6157cd29
...@@ -97,7 +97,7 @@ export const createNewBranchFromDefault = ({ state, getters }, branch) => ...@@ -97,7 +97,7 @@ export const createNewBranchFromDefault = ({ state, getters }, branch) =>
branch, branch,
}) })
.then(() => { .then(() => {
location.reload(); window.location.reload();
// this forces the loading icon to spin whilst the page is reloading // this forces the loading icon to spin whilst the page is reloading
return new Promise(() => {}); return new Promise(() => {});
...@@ -107,14 +107,14 @@ export const createNewBranchFromDefault = ({ state, getters }, branch) => ...@@ -107,14 +107,14 @@ export const createNewBranchFromDefault = ({ state, getters }, branch) =>
export const showBranchNotFoundError = ({ dispatch }, branchId) => { export const showBranchNotFoundError = ({ dispatch }, branchId) => {
dispatch('setErrorMessage', { dispatch('setErrorMessage', {
text: sprintf( text: sprintf(
__('Branch %{branchName} was not found in project.'), __("Branch %{branchName} was not found in project's repository."),
{ {
branchName: `<strong>${_.escape(branchId)}</strong>`, branchName: `<strong>${_.escape(branchId)}</strong>`,
}, },
false, false,
), ),
action: 'createNewBranchFromDefault', action: 'createNewBranchFromDefault',
actionText: 'Create branch', actionText: __('Create branch'),
actionPayload: branchId, actionPayload: branchId,
}); });
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment