chore: remove fetchEurPrice as it is not used anymore
This commit is contained in:
parent
e16062569d
commit
744535eace
6 changed files with 0 additions and 43 deletions
|
@ -105,16 +105,6 @@
|
|||
size={$uiSettings.inputSize}
|
||||
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>
|
||||
<h5>{$_('section.settings.screens')}</h5>
|
||||
|
|
|
@ -306,9 +306,6 @@
|
|||
</span>
|
||||
{/if}
|
||||
{/if}
|
||||
{#if $settings.fetchEurPrice}
|
||||
<small>{$_('section.status.fetchEuroNote')}</small>
|
||||
{/if}
|
||||
</p>
|
||||
{/if}
|
||||
</CardBody>
|
||||
|
|
|
@ -343,10 +343,6 @@
|
|||
"Settings": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"fetchEurPrice": {
|
||||
"type": "boolean",
|
||||
"description": "Fetch EUR price instead of USD"
|
||||
},
|
||||
"fgColor": {
|
||||
"type": "string",
|
||||
"default": 16777215,
|
||||
|
|
|
@ -232,9 +232,6 @@ components:
|
|||
Settings:
|
||||
type: object
|
||||
properties:
|
||||
fetchEurPrice:
|
||||
type: boolean
|
||||
description: Fetch EUR price instead of USD
|
||||
fgColor:
|
||||
type: string
|
||||
default: 16777215
|
||||
|
|
|
@ -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 }) => {
|
||||
await page.goto('/');
|
||||
await page.getByRole('button', { name: 'Show all' }).click();
|
||||
|
|
|
@ -84,7 +84,6 @@ export const settingsJson = {
|
|||
mcapBigChar: true,
|
||||
mdnsEnabled: true,
|
||||
otaEnabled: true,
|
||||
fetchEurPrice: false,
|
||||
hostnamePrefix: 'btclock',
|
||||
hostname: 'btclock-d60b14',
|
||||
ip: '192.168.20.231',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue