guid and new alert flow

This commit is contained in:
Drew Ansbacher
2021-11-01 15:07:43 -06:00
committed by Aiden McClelland
parent a5266c2e41
commit 7576b30a6b
15 changed files with 157 additions and 81 deletions

View File

@@ -59,6 +59,14 @@ export class StateService {
this.pollDataTransferProgress()
}
async importDrive (guid: string) : Promise<void> {
const ret = await this.apiService.importDrive(guid)
this.torAddress = 'http://' + ret['tor-address']
this.lanAddress = 'https://' + ret['lan-address']
this.cert = ret['root-ca']
}
async setupEmbassy () : Promise<void> {
const ret = await this.apiService.setupEmbassy({
'embassy-logicalname': this.storageDrive.logicalname,