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) =>
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,
});
};
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