diff options
author | Phil Hughes <me@iamphill.com> | 2018-05-31 08:44:47 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-05-31 08:44:47 +0100 |
commit | 745d353801ce8a961c010edc02925fa8470158fd (patch) | |
tree | 881e53a6ed1f8a4f3ca5eb01deba6bfe60c961e5 /app/assets/javascripts/ide/stores/actions/project.js | |
parent | 17c9e88c30aa3cc8541cedcf3060e4276ca4d427 (diff) | |
parent | 5116d11a6192e469ba09103507b1e0cb8d777326 (diff) | |
download | gitlab-ce-745d353801ce8a961c010edc02925fa8470158fd.tar.gz |
Merge branch 'master' into ide-jobs-list-componentside-jobs-list-components
Diffstat (limited to 'app/assets/javascripts/ide/stores/actions/project.js')
-rw-r--r-- | app/assets/javascripts/ide/stores/actions/project.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/app/assets/javascripts/ide/stores/actions/project.js b/app/assets/javascripts/ide/stores/actions/project.js index efac3bbf0a5..46af47d2f81 100644 --- a/app/assets/javascripts/ide/stores/actions/project.js +++ b/app/assets/javascripts/ide/stores/actions/project.js @@ -3,10 +3,7 @@ import { __ } from '~/locale'; import service from '../../services'; import * as types from '../mutation_types'; -export const getProjectData = ( - { commit, state, dispatch }, - { namespace, projectId, force = false } = {}, -) => +export const getProjectData = ({ commit, state }, { namespace, projectId, force = false } = {}) => new Promise((resolve, reject) => { if (!state.projects[`${namespace}/${projectId}`] || force) { commit(types.TOGGLE_LOADING, { entry: state }); @@ -36,10 +33,7 @@ export const getProjectData = ( } }); -export const getBranchData = ( - { commit, state, dispatch }, - { projectId, branchId, force = false } = {}, -) => +export const getBranchData = ({ commit, state }, { projectId, branchId, force = false } = {}) => new Promise((resolve, reject) => { if ( typeof state.projects[`${projectId}`] === 'undefined' || @@ -74,7 +68,7 @@ export const getBranchData = ( } }); -export const refreshLastCommitData = ({ commit, state, dispatch }, { projectId, branchId } = {}) => +export const refreshLastCommitData = ({ commit }, { projectId, branchId } = {}) => service .getBranchData(projectId, branchId) .then(({ data }) => { |