Небольшие доработки

This commit is contained in:
Book Pauk
2019-03-20 12:30:13 +07:00
parent e626cb6b40
commit f9d8b37b1a
3 changed files with 13 additions and 3 deletions

View File

@@ -205,6 +205,7 @@ class ServerStorage extends Vue {
if (tries >= maxSetTries) {
//отменять изменения не будем, просто предупредим
//this.commit('reader/setSettings', this.oldSettings);
console.error(result);
this.error('Не удалось отправить настройки на сервер. Данные не сохранены и могут быть перезаписаны.');
} else {
this.oldSettings = _.cloneDeep(this.settings);
@@ -279,6 +280,7 @@ class ServerStorage extends Vue {
if (tries >= maxSetTries) {
this.commit('reader/setProfiles', this.oldProfiles);
this.checkCurrentProfile();
console.error(result);
this.error('Не удалось отправить данные на сервер. Изменения отменены.');
} else {
this.oldProfiles = _.cloneDeep(this.profiles);