highlight promo

This commit is contained in:
SPRINX0\prochazka
2025-10-20 14:24:35 +02:00
parent 966eb01f1c
commit 7281b5b1d7
2 changed files with 17 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
lockedDatabaseMode,
getCurrentConfig,
cloudSigninTokenHolder,
seenPremiumPromoWidget,
} from '../stores';
import mainMenuDefinition from '../../../../app/src/mainMenuDefinition';
import hasPermission from '../utility/hasPermission';
@@ -101,6 +102,10 @@
} else {
$selectedWidget = name;
$visibleWidgetSideBar = true;
if (name == 'premium') {
$seenPremiumPromoWidget = $promoWidget?.identifier || '';
}
}
}
//const handleChangeWidget= e => (selectedWidget.set(item.name))
@@ -184,6 +189,9 @@
<FontIcon icon={item.icon} title={item.title} />
{#if item.isPremiumPromo}
<div class="premium-promo">Premium</div>
{#if $promoWidget?.identifier != $seenPremiumPromoWidget}
<div class="premium-promo-not-seen">•</div>
{/if}
{/if}
</div>
{/each}
@@ -265,4 +273,12 @@
border-radius: 3px;
bottom: 0;
}
.premium-promo-not-seen {
position: absolute;
font-size: 16pt;
color: var(--theme-icon-yellow);
top: -5px;
right: 5px;
}
</style>