diff options
Diffstat (limited to 'app/assets/javascripts/repo/stores/actions.js')
-rw-r--r-- | app/assets/javascripts/repo/stores/actions.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/repo/stores/actions.js b/app/assets/javascripts/repo/stores/actions.js index 856a3994b37..ca2f2a5ce7a 100644 --- a/app/assets/javascripts/repo/stores/actions.js +++ b/app/assets/javascripts/repo/stores/actions.js @@ -88,13 +88,15 @@ export const commitChanges = ({ commit, state, dispatch }, { payload, newMr }) = }) .catch(() => flash('Error committing changes. Please try again.')); -export const createTempEntry = ({ state, dispatch }, { name, type }) => { +export const createTempEntry = ({ state, dispatch }, { name, type, content = '', base64 = false }) => { if (type === 'tree') { dispatch('createTempTree', name); } else if (type === 'blob') { dispatch('createTempFile', { tree: state, name, + base64, + content, }); } }; |