fix: remove server/location count from tariff cards and confirmation

Server info only shown in user's active subscription card.
This commit is contained in:
Fringg
2026-02-18 09:28:43 +03:00
parent ecc089da64
commit 0fac3689e5

View File

@@ -2380,25 +2380,6 @@ export default function Subscription() {
{t('subscription.devices', { count: tariff.device_limit })}
</span>
</div>
{/* Servers */}
<div className="flex items-center gap-1.5">
<svg
className="h-4 w-4 text-dark-400"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
strokeWidth={1.5}
>
<path
strokeLinecap="round"
strokeLinejoin="round"
d="M12 21a9.004 9.004 0 008.716-6.747M12 21a9.004 9.004 0 01-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 017.843 4.582M12 3a8.997 8.997 0 00-7.843 4.582m15.686 0A11.953 11.953 0 0112 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0121 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0112 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 013 12c0-1.605.42-3.113 1.157-4.418"
/>
</svg>
<span className="text-dark-300">
{t('subscription.locations', { count: tariff.servers_count })}
</span>
</div>
</div>
{/* Price info - daily or period-based */}
<div className="mt-3 border-t border-dark-700/50 pt-3 text-sm text-dark-400">
@@ -2595,25 +2576,7 @@ export default function Subscription() {
)}
</span>
</div>
<div>
<span className="text-dark-500">{t('subscription.locationsLabel')}:</span>
<span className="ml-2 text-dark-200">{selectedTariff.servers_count}</span>
</div>
</div>
{selectedTariff.servers.length > 0 && (
<div className="mt-3 flex flex-wrap gap-2">
{selectedTariff.servers.map((server) => (
<span key={server.uuid} className="badge-secondary">
{server.name}
</span>
))}
{selectedTariff.servers_count > selectedTariff.servers.length && (
<span className="text-sm text-dark-500">
+{selectedTariff.servers_count - selectedTariff.servers.length}
</span>
)}
</div>
)}
</div>
{/* Daily Tariff Purchase */}