More fixes for tips

This commit is contained in:
kvan7
2025-01-26 13:59:42 -06:00
parent 78e88a4671
commit 8175d01a17
3 changed files with 10 additions and 6 deletions

View File

@@ -352,10 +352,11 @@
"show_tips_on_startup": "Show tips on startup notification",
"show_tips_frequency": "How often to show tips when price checking",
"tip_frequency_1": "Always",
"tip_frequency_2": "Normal",
"tip_frequency_3": "Rarely",
"tip_frequency_4": "Very Rarely",
"tip_frequency_5": "Never",
"tip_frequency_2": "Often",
"tip_frequency_3": "Normal",
"tip_frequency_4": "Rarely",
"tip_frequency_5": "Very Rarely",
"tip_frequency_6": "Never",
"tips_header": "Cycle Through All Tips:",
"tip_number_header": "Tip #{0}"
},

View File

@@ -109,7 +109,7 @@ import { useLeagues } from "@/web/background/Leagues";
import { randomTip, TIP_FREQUENCY_MAP } from "../help/tips";
let _showSupportLinksCounter = 0;
let _showTipCounter = 0;
let _showTipCounter = 15;
export default defineComponent({
name: "CheckedItem",
@@ -343,7 +343,9 @@ export default defineComponent({
showSupportLinks.value = false;
if (
AppConfig().tipsFrequency !== TipsFrequency.Never &&
_showTipCounter >= TIP_FREQUENCY_MAP[AppConfig().tipsFrequency] &&
(AppConfig().tipsFrequency === TipsFrequency.Always ||
_showTipCounter >=
TIP_FREQUENCY_MAP[AppConfig().tipsFrequency]) &&
!cInteracted
) {
_showTipCounter = 0;

View File

@@ -12,6 +12,7 @@
<option :value="3">{{ t(":tip_frequency_3") }}</option>
<option :value="4">{{ t(":tip_frequency_4") }}</option>
<option :value="5">{{ t(":tip_frequency_5") }}</option>
<option :value="6">{{ t(":tip_frequency_6") }}</option>
</select>
</div>
</div>