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