mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-14 04:03:51 +00:00
Fix navbar badge
This commit is contained in:
parent
01dd38c0db
commit
614c2a80c6
|
@ -167,7 +167,7 @@ export default defineComponent({
|
||||||
};
|
};
|
||||||
|
|
||||||
const setOpenTradesAsPill = (tradeCount: number) => {
|
const setOpenTradesAsPill = (tradeCount: number) => {
|
||||||
if (!favicon) {
|
if (!favicon.value) {
|
||||||
favicon.value = new Favico({
|
favicon.value = new Favico({
|
||||||
animation: 'none',
|
animation: 'none',
|
||||||
// position: 'up',
|
// position: 'up',
|
||||||
|
@ -177,9 +177,9 @@ export default defineComponent({
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (tradeCount !== 0 && settingsStore.openTradesInTitle === 'showPill') {
|
if (tradeCount !== 0 && settingsStore.openTradesInTitle === 'showPill') {
|
||||||
favicon.badge(tradeCount);
|
favicon.value.badge(tradeCount);
|
||||||
} else {
|
} else {
|
||||||
favicon.reset();
|
favicon.value.reset();
|
||||||
console.log('reset');
|
console.log('reset');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user