diff --git a/ui/src/app/pages/apps-routes/app-installed-list/app-installed-list.page.html b/ui/src/app/pages/apps-routes/app-installed-list/app-installed-list.page.html index 74e0be14f..7a8e9e8e2 100644 --- a/ui/src/app/pages/apps-routes/app-installed-list/app-installed-list.page.html +++ b/ui/src/app/pages/apps-routes/app-installed-list/app-installed-list.page.html @@ -22,16 +22,16 @@ - +
-
+
- + diff --git a/ui/src/app/pages/apps-routes/app-installed-list/app-installed-list.page.ts b/ui/src/app/pages/apps-routes/app-installed-list/app-installed-list.page.ts index db86ec051..8b2ff4ffb 100644 --- a/ui/src/app/pages/apps-routes/app-installed-list/app-installed-list.page.ts +++ b/ui/src/app/pages/apps-routes/app-installed-list/app-installed-list.page.ts @@ -97,18 +97,22 @@ export class AppInstalledListPage extends Cleanup { }, }) + console.log(this.isTor, this.apps[2].subject.lanEnabled.getValue()) } - async launchUiTab (torAddress: string, id: string, event: Event) { + async launchUiTab (id: string, event: Event) { event.preventDefault() event.stopPropagation() + const app = this.apps.find(app => app.id === id).subject + let uiAddress: string if (this.isTor) { - uiAddress = torAddress.startsWith('http') ? torAddress : `http://${torAddress}` + uiAddress = `http://${app.torAddress.getValue()}` } else { - uiAddress = `https://${id}.${this.serverModel.peek().serverId}.local` + uiAddress = `https://${app.lanAddress.getValue()}` } + console.log(uiAddress) return window.open(uiAddress, '_blank') } diff --git a/ui/src/app/pages/apps-routes/app-installed-show/app-installed-show.page.ts b/ui/src/app/pages/apps-routes/app-installed-show/app-installed-show.page.ts index f60ebf21c..69651e38e 100644 --- a/ui/src/app/pages/apps-routes/app-installed-show/app-installed-show.page.ts +++ b/ui/src/app/pages/apps-routes/app-installed-show/app-installed-show.page.ts @@ -167,11 +167,9 @@ export class AppInstalledShowPage extends Cleanup { async launchUiTab () { let uiAddress: string if (this.isTor) { - const torAddress = this.app.torAddress.getValue() - uiAddress = torAddress.startsWith('http') ? torAddress : `http://${torAddress}` + uiAddress = `http://${this.app.torAddress.getValue()}` } else { - const lanAddress = this.app.lanAddress.getValue() - uiAddress = lanAddress.startsWith('http') ? lanAddress : `http://${lanAddress}` + uiAddress = `https://${this.app.lanAddress.getValue()}` } return window.open(uiAddress, '_blank') }