bugfixing
This commit is contained in:
parent
27dc3cc0a2
commit
65bc8b480f
@ -942,7 +942,7 @@
|
|||||||
<!--End Login Modal-->
|
<!--End Login Modal-->
|
||||||
|
|
||||||
<!--Start SellTrade Modal-->
|
<!--Start SellTrade Modal-->
|
||||||
<PriceAlert {data} ticker={$etfTicker} assetType={$assetType} />
|
<PriceAlert {data} ticker={$etfTicker} assetType="etf" />
|
||||||
|
|
||||||
<!--Start Add Watchlist Modal-->
|
<!--Start Add Watchlist Modal-->
|
||||||
<input type="checkbox" id="addWatchListModal" class="modal-toggle" />
|
<input type="checkbox" id="addWatchListModal" class="modal-toggle" />
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { numberOfUnreadNotification, openPriceAlert } from "$lib/store";
|
import { openPriceAlert } from "$lib/store";
|
||||||
import {
|
import {
|
||||||
groupNews,
|
groupNews,
|
||||||
groupEarnings,
|
groupEarnings,
|
||||||
@ -88,16 +88,9 @@
|
|||||||
"border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
|
"border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const postData = {
|
toast.success(`Price alerts deleted successfully`, {
|
||||||
priceAlertIdList: deletePriceAlertList,
|
style:
|
||||||
};
|
"border-radius: 5px; background: #fff; color: #000; border-color: #4B5563; font-size: 15px;",
|
||||||
|
|
||||||
const response = await fetch("/api/delete-price-alert", {
|
|
||||||
method: "POST",
|
|
||||||
headers: {
|
|
||||||
"Content-Type": "application/json",
|
|
||||||
},
|
|
||||||
body: JSON.stringify(postData),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const symbolsToDelete = priceAlertList
|
const symbolsToDelete = priceAlertList
|
||||||
@ -127,9 +120,21 @@
|
|||||||
groupedEarnings = [];
|
groupedEarnings = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const postData = {
|
||||||
|
priceAlertIdList: deletePriceAlertList,
|
||||||
|
};
|
||||||
|
|
||||||
deletePriceAlertList = [];
|
deletePriceAlertList = [];
|
||||||
numberOfChecked = 0;
|
numberOfChecked = 0;
|
||||||
editMode = !editMode;
|
editMode = !editMode;
|
||||||
|
|
||||||
|
await fetch("/api/delete-price-alert", {
|
||||||
|
method: "POST",
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
body: JSON.stringify(postData),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -457,13 +462,17 @@
|
|||||||
? 'hidden'
|
? 'hidden'
|
||||||
: ''} bg-[#2E3238] h-[18px] w-[18px] rounded-sm ring-offset-0 mr-3 cursor-pointer"
|
: ''} bg-[#2E3238] h-[18px] w-[18px] rounded-sm ring-offset-0 mr-3 cursor-pointer"
|
||||||
/>
|
/>
|
||||||
{#if !editMode}
|
{#if editMode}
|
||||||
|
<label
|
||||||
|
class="text-blue-400 sm:hover:text-white cursor-pointer"
|
||||||
|
>
|
||||||
|
{item?.symbol}
|
||||||
|
</label>
|
||||||
|
{:else}
|
||||||
<HoverStockChart
|
<HoverStockChart
|
||||||
symbol={item?.symbol}
|
symbol={item?.symbol}
|
||||||
assetType={item?.type}
|
assetType={item?.type}
|
||||||
/>
|
/>
|
||||||
{:else}
|
|
||||||
{item?.symbol}
|
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user