Переглянути джерело

Skip service calls if file fields constraint failed

pull/44/head
Kristijan Mitrovic 4 роки тому
джерело
коміт
50f61dba0b
1 змінених файлів з 12 додано та 10 видалено
  1. +12
    -10
      src/auth/RestorePage.vue

+ 12
- 10
src/auth/RestorePage.vue Переглянути файл

@@ -108,16 +108,18 @@ export default {
this.errors.clear();
const { restoreShortKey, password } = this;
this.submitted = true;
if (this.restoreLongNetworkKey) {
this.restore({
shortKey: restoreShortKey, longKey: this.restoreLongNetworkKey, password: password,
systemConfigs: this.configs, messages: this.messages, errors: this.errors
});
} else if (this.restoreBackupPackageFileRef) {
this.restoreFromPackage({
shortKey: restoreShortKey, backupFileRef: this.restoreBackupPackageFileRef, password: password,
systemConfigs: this.configs, messages: this.messages, errors: this.errors
});
if (!this.fileFieldsConstaintFailed) {
if (this.restoreLongNetworkKey) {
this.restore({
shortKey: restoreShortKey, longKey: this.restoreLongNetworkKey, password: password,
systemConfigs: this.configs, messages: this.messages, errors: this.errors
});
} else if (this.restoreBackupPackageFileRef) {
this.restoreFromPackage({
shortKey: restoreShortKey, backupFileRef: this.restoreBackupPackageFileRef, password: password,
systemConfigs: this.configs, messages: this.messages, errors: this.errors
});
}
}
},
readUploadedKeyFile() {


Завантаження…
Відмінити
Зберегти