Skip to content

Commit 2eaabd3

Browse files
snotify.success
1 parent a6e6427 commit 2eaabd3

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"save_to_file": "Save all keys in file",
55
"copied": "Token Copied!",
66
"powered": "Powered by",
7-
"cancel": "Cancel"
7+
"cancel": "Cancel",
8+
"keys_added": "Keys added"
89
}

src/locales/ru.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"save_to_file": "Сохранить все ключи в файл",
55
"copied": "Код скопирован!",
66
"powered": "Создано в",
7-
"cancel": "Отмена"
7+
"cancel": "Отмена",
8+
"keys_added": "Добавлены ключи"
89
}

src/views/Home.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,14 @@ export default {
251251
this.op = 'home';
252252
await this.$store.dispatch('keys2fa/setKeys', data);
253253
await this.generateTokens();
254-
await this.makeToast('success', 'Импорт', 'Добавлены ключи ' + data.length);
254+
255+
this.$snotify.success(this.$t('keys_added') + ' - ' + data.length, {
256+
timeout: 3000,
257+
showProgressBar: true,
258+
closeOnClick: true,
259+
pauseOnHover: true,
260+
position: 'leftBottom'
261+
});
255262
});
256263
}
257264
}

0 commit comments

Comments
 (0)