rework LAN display and service launchability

This commit is contained in:
Matt Hill
2021-03-04 23:57:02 -07:00
committed by Keagan McClelland
parent daf701a76c
commit deb0b1e561
14 changed files with 152 additions and 64 deletions

View File

@@ -16,10 +16,8 @@ export class LANPage {
lanDocs = 'docs.start9labs.com/user-manual/general/secure-lan'
lanAddress: string
isTor: boolean
fullDocumentationLink: string
isConsulate: boolean
lanDisabled: LanSetupIssue = undefined
lanDisabled: LanSetupIssue
readonly lanDisabledExplanation: { [k in LanSetupIssue]: string } = {
NotDesktop: `We have detected you are on a mobile device. To setup LAN on a mobile device, use the Start9 Setup App.`,
NotTor: `We have detected you are not using a Tor connection. For security reasons, you must setup LAN over a Tor connection. Please navigate to your Embassy Tor Address and try again.`,
@@ -40,8 +38,6 @@ export class LANPage {
this.lanDisabled = 'NotTor'
}
this.isConsulate = this.config.isConsulateIos || this.config.isConsulateAndroid
if (this.config.isTor()) {
this.fullDocumentationLink = `http://${this.torDocs}`
} else {