Skip to content

Commit 9b4efb6

Browse files
author
v.malyshev
committed
fix
1 parent 692d1fb commit 9b4efb6

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

src/lang/ru.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ const ru = {
3030
search: 'Поиск'
3131
},
3232
common:{
33-
preloader: 'Загрузка'
33+
preloader: 'Загрузка',
34+
dragging: 'Перетещите файл сюда',
3435
},
3536
clipboard: {
3637
actionType: 'Тип операции',

src/store/manager/actions.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ export default {
4545
* @param dispatch
4646
* @param term - search ter,
4747
*/
48-
refreshDirectory({ state, commit, dispatch }, term = null) {
48+
async refreshDirectory({ state, commit, dispatch }, term = null) {
4949
let method = term == null ? 'content' : 'search'
50-
GET[method](state.selectedDisk, term ? term : state.selectedDirectory).then((response) => {
50+
await GET[method](state.selectedDisk, term ? term : state.selectedDirectory).then((response) => {
5151
commit('resetSelected');
5252
commit('resetSortSettings');
5353
commit('resetHistory');
@@ -135,10 +135,11 @@ export default {
135135
* TODO:: it makes sense to redo and simplify.
136136
* @param state
137137
* @param dispatch
138+
* @param commit
138139
* @param type
139140
* @param path
140141
*/
141-
selectMassByShift({ state, dispatch }, { type, path}) {
142+
selectMassByShift({commit, state, dispatch }, { type, path}) {
142143
let selectedKey = state[type].findIndex((obj) => obj.path === path);
143144

144145
if (state.selected[type].length > 0) {
@@ -167,20 +168,20 @@ export default {
167168
if (newType == 'directories'){
168169
state[newType].forEach((item, k) => {
169170
if (alreadySelectedKey <= k)
170-
dispatch('selectByState', {commit, item})
171+
dispatch('selectByState', { item})
171172
});
172173
state[type].forEach((item, k) => {
173174
if (selectedKey >= k)
174-
dispatch('selectByState', {commit, item})
175+
dispatch('selectByState', { item})
175176
});
176177
} else {
177178
state[newType].forEach((item, k) => {
178179
if (alreadySelectedKey >= k)
179-
dispatch('selectByState', {commit, item})
180+
dispatch('selectByState', { item})
180181
});
181182
state[type].forEach((item, k) => {
182183
if (selectedKey <= k)
183-
dispatch('selectByState', {commit, item})
184+
dispatch('selectByState', { item})
184185
});
185186
}
186187
}

0 commit comments

Comments
 (0)