Commit ca3f7cf0 authored by Phil Hughes's avatar Phil Hughes

added line height to label in modal

fixed spec because of object key change
parent 8e0d073b
...@@ -75,7 +75,7 @@ export default { ...@@ -75,7 +75,7 @@ export default {
@submit.prevent="createEntryInStore" @submit.prevent="createEntryInStore"
> >
<fieldset class="form-group append-bottom-0"> <fieldset class="form-group append-bottom-0">
<label class="label-light col-sm-3"> <label class="label-light col-sm-3 ide-new-modal-label">
{{ __('Name') }} {{ __('Name') }}
</label> </label>
<div class="col-sm-9"> <div class="col-sm-9">
......
...@@ -142,7 +142,7 @@ export const updateTempFlagForEntry = ({ commit, dispatch, state }, { file, temp ...@@ -142,7 +142,7 @@ export const updateTempFlagForEntry = ({ commit, dispatch, state }, { file, temp
commit(types.UPDATE_TEMP_FLAG, { path: file.path, tempFile }); commit(types.UPDATE_TEMP_FLAG, { path: file.path, tempFile });
if (file.parentPath) { if (file.parentPath) {
dispatch('updateTempFlagForEntry', { entry: state.entries[file.parentPath], tempFile }); dispatch('updateTempFlagForEntry', { file: state.entries[file.parentPath], tempFile });
} }
}; };
......
...@@ -950,3 +950,7 @@ ...@@ -950,3 +950,7 @@
background: transparent; background: transparent;
resize: none; resize: none;
} }
.ide-new-modal-label {
line-height: 34px;
}
...@@ -352,7 +352,7 @@ describe('Multi-file store actions', () => { ...@@ -352,7 +352,7 @@ describe('Multi-file store actions', () => {
testAction( testAction(
actions.updateTempFlagForEntry, actions.updateTempFlagForEntry,
{ entry: f, tempFile: false }, { file: f, tempFile: false },
store.state, store.state,
[{ type: 'UPDATE_TEMP_FLAG', payload: { path: f.path, tempFile: false } }], [{ type: 'UPDATE_TEMP_FLAG', payload: { path: f.path, tempFile: false } }],
[], [],
...@@ -375,10 +375,10 @@ describe('Multi-file store actions', () => { ...@@ -375,10 +375,10 @@ describe('Multi-file store actions', () => {
testAction( testAction(
actions.updateTempFlagForEntry, actions.updateTempFlagForEntry,
{ entry: f, tempFile: false }, { file: f, tempFile: false },
store.state, store.state,
[{ type: 'UPDATE_TEMP_FLAG', payload: { path: f.path, tempFile: false } }], [{ type: 'UPDATE_TEMP_FLAG', payload: { path: f.path, tempFile: false } }],
[{ type: 'updateTempFlagForEntry', payload: { entry: parent, tempFile: false } }], [{ type: 'updateTempFlagForEntry', payload: { file: parent, tempFile: false } }],
done, done,
); );
}); });
......
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