From 90afe49fbf0099ecd797ee4f548d80e82282f149 Mon Sep 17 00:00:00 2001 From: Vijay Aravamudhan Date: Wed, 13 Jul 2022 05:06:33 +0530 Subject: Handle both ferdi and ferdium servers for transferring from (#473) --- src/api/apiBase.ts | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/api/apiBase.ts b/src/api/apiBase.ts index 974d513a1..d066d1466 100644 --- a/src/api/apiBase.ts +++ b/src/api/apiBase.ts @@ -53,14 +53,18 @@ export function importExportURL() { export function serverBase() { const serverType = (window as any).ferdium.stores.settings.all.app.server; - const noServer = 'You are using Ferdium without a server'; + const noServerFerdi = 'You are using Ferdi without a server'; + const noServerFerdium = 'You are using Ferdium without a server'; let terms; switch (serverType) { case LIVE_FRANZ_API: terms = DEV_API_FRANZ_WEBSITE; break; - case noServer: + case noServerFerdi: + terms = LIVE_FERDIUM_API; + break; + case noServerFerdium: terms = LIVE_FERDIUM_API; break; default: @@ -72,7 +76,8 @@ export function serverBase() { export function serverName(): string { const serverType = (window as any).ferdium.stores.settings.all.app.server; - const noServer = 'You are using Ferdium without a server'; + const noServerFerdi = 'You are using Ferdi without a server'; + const noServerFerdium = 'You are using Ferdium without a server'; let nameServer; switch (serverType) { @@ -82,7 +87,10 @@ export function serverName(): string { case LIVE_FERDIUM_API: nameServer = 'Ferdium'; break; - case noServer: + case noServerFerdi: + nameServer = 'No'; + break; + case noServerFerdium: nameServer = 'No'; break; default: -- cgit v1.2.3-54-g00ecf