added line height to label in modal
fixed spec because of object key change
This commit is contained in:
parent
8e0d073b36
commit
ca3f7cf0e3
|
@ -75,7 +75,7 @@ export default {
|
|||
@submit.prevent="createEntryInStore"
|
||||
>
|
||||
<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') }}
|
||||
</label>
|
||||
<div class="col-sm-9">
|
||||
|
|
|
@ -142,7 +142,7 @@ export const updateTempFlagForEntry = ({ commit, dispatch, state }, { file, temp
|
|||
commit(types.UPDATE_TEMP_FLAG, { path: file.path, tempFile });
|
||||
|
||||
if (file.parentPath) {
|
||||
dispatch('updateTempFlagForEntry', { entry: state.entries[file.parentPath], tempFile });
|
||||
dispatch('updateTempFlagForEntry', { file: state.entries[file.parentPath], tempFile });
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -950,3 +950,7 @@
|
|||
background: transparent;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
.ide-new-modal-label {
|
||||
line-height: 34px;
|
||||
}
|
||||
|
|
|
@ -352,7 +352,7 @@ describe('Multi-file store actions', () => {
|
|||
|
||||
testAction(
|
||||
actions.updateTempFlagForEntry,
|
||||
{ entry: f, tempFile: false },
|
||||
{ file: f, tempFile: false },
|
||||
store.state,
|
||||
[{ type: 'UPDATE_TEMP_FLAG', payload: { path: f.path, tempFile: false } }],
|
||||
[],
|
||||
|
@ -375,10 +375,10 @@ describe('Multi-file store actions', () => {
|
|||
|
||||
testAction(
|
||||
actions.updateTempFlagForEntry,
|
||||
{ entry: f, tempFile: false },
|
||||
{ file: f, tempFile: false },
|
||||
store.state,
|
||||
[{ 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,
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue