Переход на quasar

This commit is contained in:
Book Pauk
2020-02-25 21:07:12 +07:00
parent 01bd15121b
commit efd4fbad70
2 changed files with 58 additions and 10 deletions

View File

@@ -472,20 +472,15 @@ class SettingsPage extends Vue {
async enterServerStorageKey(key) {
try {
const result = await this.$prompt(`<b>Предупреждение!</b> Изменение ключа доступа приведет к замене всех профилей и читаемых книг в читалке.` +
`<br><br>Введите новый ключ доступа:`, '', {
dangerouslyUseHTMLString: true,
confirmButtonText: 'OK',
cancelButtonText: 'Отмена',
const result = await this.stdDialog.prompt(`<b>Предупреждение!</b> Изменение ключа доступа приведет к замене всех профилей и читаемых книг в читалке.` +
`<br><br>Введите новый ключ доступа:`, ' ', {
inputValidator: (str) => { if (str && utils.fromBase58(str).length == 32) return true; else return 'Неверный формат ключа'; },
inputValue: (key && _.isString(key) ? key : null),
customClass: 'prompt-dialog',
type: 'warning',
});
/*
if (result.value && utils.fromBase58(result.value).length == 32) {
this.commit('reader/setServerStorageKey', result.value);
}
}*/
} catch (e) {
//
}