Поправил мелкие баги

This commit is contained in:
Book Pauk
2019-01-13 19:02:42 +07:00
parent c1fb38e5d4
commit eb02309bca
3 changed files with 6 additions and 2 deletions

View File

@@ -76,6 +76,7 @@ class LoaderPage extends Vue {
this.progress.hide();
} catch (e) {
this.progress.hide();
this.$refs.input.blur();
this.$alert(e.message, 'Ошибка', {type: 'error'});
}
}
@@ -93,8 +94,9 @@ class LoaderPage extends Vue {
keyHook(event) {
//недостатки сторонних ui
if (document.activeElement == this.$refs.input.$refs.input && event.type == 'keyup' && event.key == 'Enter')
if (document.activeElement === this.$refs.input.$refs.input && event.type == 'keyup' && event.key == 'Enter') {
this.submitUrl();
}
}
}
//-----------------------------------------------------------------------------

View File

@@ -15,6 +15,7 @@ import Component from 'vue-class-component';
const ruMessage = {
'start': ' ',
'finish': ' ',
'error': ' ',
'download': 'скачивание',
'decompress': 'распаковка',
'convert': 'конвертирование',