Commit fd485099 authored by Justin Ho's avatar Justin Ho

Remove parent = document from createFlash

Already matches the default params
parent 8f50dc25
......@@ -62,7 +62,6 @@ export default {
name: this.entryName,
}),
type: 'alert',
parent: document,
fadeTransition: false,
addBodyClass: true,
});
......
......@@ -253,7 +253,6 @@ export default {
createFlash({
message: __('Error setting up editor. Please try again.'),
type: 'alert',
parent: document,
fadeTransition: false,
addBodyClass: true,
});
......
......@@ -114,7 +114,6 @@ export const createRouter = (store, defaultBranch) => {
createFlash({
message: __('Error while loading the project data. Please try again.'),
type: 'alert',
parent: document,
fadeTransition: false,
addBodyClass: true,
});
......
......@@ -42,7 +42,6 @@ export const createTempEntry = (
}),
type: 'alert',
parent: document,
fadeTransition: false,
addBodyClass: true,
});
......@@ -287,7 +286,6 @@ export const getBranchData = ({ commit, state }, { projectId, branchId, force =
createFlash({
message: __('Error loading branch data. Please try again.'),
type: 'alert',
parent: document,
fadeTransition: false,
addBodyClass: true,
});
......
......@@ -37,7 +37,6 @@ export const getMergeRequestsForBranch = (
createFlash({
message: __(`Error fetching merge requests for ${branchId}`),
type: 'alert',
parent: document,
fadeTransition: false,
addBodyClass: true,
});
......
......@@ -22,7 +22,6 @@ export const getProjectData = ({ commit, state }, { namespace, projectId, force
createFlash({
message: __('Error loading project data. Please try again.'),
type: 'alert',
parent: document,
fadeTransition: false,
addBodyClass: true,
});
......@@ -47,7 +46,6 @@ export const refreshLastCommitData = ({ commit }, { projectId, branchId } = {})
createFlash({
message: __('Error loading last commit.'),
type: 'alert',
parent: document,
fadeTransition: false,
addBodyClass: true,
});
......
......@@ -146,7 +146,6 @@ export const commitChanges = ({ commit, state, getters, dispatch, rootState, roo
createFlash({
message: data.message,
type: 'alert',
parent: document,
fadeTransition: false,
addBodyClass: true,
});
......
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