chore: remove fetchEurPrice as it is not used anymore

This commit is contained in:
Djuri 2025-04-15 23:24:29 +02:00
parent e16062569d
commit 744535eace
Signed by: djuri
GPG key ID: 61B9B2DDE5AA3AC1
6 changed files with 0 additions and 43 deletions

View file

@ -105,16 +105,6 @@
size={$uiSettings.inputSize} size={$uiSettings.inputSize}
col={{ md: '6', xl: '12', xxl: '6' }} col={{ md: '6', xl: '12', xxl: '6' }}
/> />
{#if !$settings.actCurrencies}
<SettingsSwitch
id="fetchEurPrice"
bind:checked={$settings.fetchEurPrice}
label="{$_('section.settings.fetchEuroPrice')} ({$_('restartRequired')})"
size={$uiSettings.inputSize}
col={{ md: '6', xl: '12', xxl: '6' }}
/>
{/if}
</Row> </Row>
<Row> <Row>
<h5>{$_('section.settings.screens')}</h5> <h5>{$_('section.settings.screens')}</h5>

View file

@ -306,9 +306,6 @@
</span> </span>
{/if} {/if}
{/if} {/if}
{#if $settings.fetchEurPrice}
<small>{$_('section.status.fetchEuroNote')}</small>
{/if}
</p> </p>
{/if} {/if}
</CardBody> </CardBody>

View file

@ -343,10 +343,6 @@
"Settings": { "Settings": {
"type": "object", "type": "object",
"properties": { "properties": {
"fetchEurPrice": {
"type": "boolean",
"description": "Fetch EUR price instead of USD"
},
"fgColor": { "fgColor": {
"type": "string", "type": "string",
"default": 16777215, "default": 16777215,

View file

@ -232,9 +232,6 @@ components:
Settings: Settings:
type: object type: object
properties: properties:
fetchEurPrice:
type: boolean
description: Fetch EUR price instead of USD
fgColor: fgColor:
type: string type: string
default: 16777215 default: 16777215

View file

@ -73,28 +73,6 @@ test('time values can not be zero or negative', async ({ page }) => {
} }
}); });
test('info message when fetch eur price is enabled', async ({ page }) => {
delete (settingsJson as { actCurrencies?: string[] }).actCurrencies;
await page.goto('/');
await page.getByRole('button', { name: 'Show all' }).click();
const inputField = 'input#fetchEurPrice';
const switchElement = await page.locator(inputField);
expect(switchElement).toBeTruthy();
const isSwitchEnabled = await switchElement.isChecked();
expect(isSwitchEnabled).toBe(false);
await expect(page.getByText('the WS Price connection will show')).toBeHidden();
await switchElement.click();
const isSwitchNowEnabled = await switchElement.isChecked();
expect(isSwitchNowEnabled).toBe(true);
await expect(page.getByText('the WS Price connection will show')).toBeVisible();
});
test('npub values will be converted to hex pubkeys', async ({ page }) => { test('npub values will be converted to hex pubkeys', async ({ page }) => {
await page.goto('/'); await page.goto('/');
await page.getByRole('button', { name: 'Show all' }).click(); await page.getByRole('button', { name: 'Show all' }).click();

View file

@ -84,7 +84,6 @@ export const settingsJson = {
mcapBigChar: true, mcapBigChar: true,
mdnsEnabled: true, mdnsEnabled: true,
otaEnabled: true, otaEnabled: true,
fetchEurPrice: false,
hostnamePrefix: 'btclock', hostnamePrefix: 'btclock',
hostname: 'btclock-d60b14', hostname: 'btclock-d60b14',
ip: '192.168.20.231', ip: '192.168.20.231',