Selaa lähdekoodia

Skip service calls if file fields constraint failed

pull/44/head
Kristijan Mitrovic 4 vuotta sitten
vanhempi
commit
50f61dba0b
1 muutettua tiedostoa jossa 12 lisäystä ja 10 poistoa
  1. +12
    -10
      src/auth/RestorePage.vue

+ 12
- 10
src/auth/RestorePage.vue Näytä tiedosto

@@ -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() {


Ladataan…
Peruuta
Tallenna