diff --git a/ui/src/app/pages/server-routes/lan/lan.page.html b/ui/src/app/pages/server-routes/lan/lan.page.html
index d19f6234c..0bfccc02e 100644
--- a/ui/src/app/pages/server-routes/lan/lan.page.html
+++ b/ui/src/app/pages/server-routes/lan/lan.page.html
@@ -31,15 +31,6 @@
Download and trust your Embassy's Root Certificate Authority to establish a secure connection on the LAN.
-
-
-
-
-
- Refresh LAN
- If you are having issues connecting to your Embassy over LAN, try refreshing your LAN services by clicking the button below.
-
-
diff --git a/ui/src/app/pages/server-routes/lan/lan.page.ts b/ui/src/app/pages/server-routes/lan/lan.page.ts
index 818c0ea36..3c95b8252 100644
--- a/ui/src/app/pages/server-routes/lan/lan.page.ts
+++ b/ui/src/app/pages/server-routes/lan/lan.page.ts
@@ -1,8 +1,5 @@
import { Component } from '@angular/core'
-import { LoadingController, ToastController } from '@ionic/angular'
import { ConfigService } from 'src/app/services/config.service'
-import { ApiService } from 'src/app/services/api/embassy-api.service'
-import { ErrorToastService } from 'src/app/services/error-toast.service'
@Component({
selector: 'lan',
@@ -14,11 +11,7 @@ export class LANPage {
lanDisabled: string
constructor (
- private readonly toastCtrl: ToastController,
private readonly config: ConfigService,
- private readonly loadingCtrl: LoadingController,
- private readonly errToast: ErrorToastService,
- private readonly embassyApi: ApiService,
) { }
ngOnInit () {
@@ -30,43 +23,4 @@ export class LANPage {
installCert (): void {
document.getElementById('install-cert').click()
}
-
- async refreshLAN (): Promise {
- const loader = await this.loadingCtrl.create({
- spinner: 'lines',
- message: 'Refreshing LAN...',
- cssClass: 'loader',
- })
- await loader.present()
-
- try {
- await this.embassyApi.refreshLan({ })
- this.presentToastSuccess()
- } catch (e) {
- this.errToast.present(e)
- } finally {
- loader.dismiss()
- }
- }
-
- private async presentToastSuccess (): Promise {
- const toast = await this.toastCtrl.create({
- header: 'Success',
- message: `LAN refreshed.`,
- position: 'bottom',
- duration: 3000,
- buttons: [
- {
- side: 'start',
- icon: 'close',
- handler: () => {
- return true
- },
- },
- ],
- cssClass: 'success-toast',
- })
-
- await toast.present()
- }
}
diff --git a/ui/src/app/services/api/api.types.ts b/ui/src/app/services/api/api.types.ts
index 545d146c5..25ae6cb8b 100644
--- a/ui/src/app/services/api/api.types.ts
+++ b/ui/src/app/services/api/api.types.ts
@@ -42,11 +42,6 @@ export module RR {
export type ShutdownServerReq = { } // server.shutdown
export type ShutdownServerRes = null
- // network
-
- export type RefreshLanReq = { } // network.lan.refresh
- export type RefreshLanRes = null
-
// sessions
export type GetSessionsReq = { } // sessions.list
diff --git a/ui/src/app/services/api/embassy-api.service.ts b/ui/src/app/services/api/embassy-api.service.ts
index b1396c248..97a029cc5 100644
--- a/ui/src/app/services/api/embassy-api.service.ts
+++ b/ui/src/app/services/api/embassy-api.service.ts
@@ -59,10 +59,6 @@ export abstract class ApiService implements Source, Http {
abstract shutdownServer (params: RR.ShutdownServerReq): Promise
- // network
-
- abstract refreshLan (params: RR.RefreshLanReq): Promise
-
// marketplace URLs
abstract getEos (params: RR.GetMarketplaceEOSReq): Promise
diff --git a/ui/src/app/services/api/embassy-live-api.service.ts b/ui/src/app/services/api/embassy-live-api.service.ts
index a4441aa1e..005ed94cd 100644
--- a/ui/src/app/services/api/embassy-live-api.service.ts
+++ b/ui/src/app/services/api/embassy-live-api.service.ts
@@ -77,12 +77,6 @@ export class LiveApiService extends ApiService {
return this.http.rpcRequest({ method: 'server.shutdown', params })
}
- // network
-
- async refreshLan (params: RR.RefreshLanReq): Promise {
- return this.http.rpcRequest({ method: 'network.lan.refresh', params })
- }
-
// marketplace URLs
async getEos (params: RR.GetMarketplaceEOSReq): Promise {
diff --git a/ui/src/app/services/api/embassy-mock-api.service.ts b/ui/src/app/services/api/embassy-mock-api.service.ts
index a764bfe5b..bf1b0c861 100644
--- a/ui/src/app/services/api/embassy-mock-api.service.ts
+++ b/ui/src/app/services/api/embassy-mock-api.service.ts
@@ -136,13 +136,6 @@ export class MockApiService extends ApiService {
return null
}
- // network
-
- async refreshLan (params: RR.RefreshLanReq): Promise {
- await pauseFor(2000)
- return null
- }
-
// marketplace URLs
async getEos (params: RR.GetMarketplaceEOSReq): Promise {