fix(models): скрывать карточку «Облако» целиком, если пользователь не авторизован

This commit is contained in:
David Perov 2026-06-26 17:57:17 +03:00
parent c07d2c82d7
commit e28f4eaa2f
2 changed files with 3 additions and 0 deletions

View file

@ -1617,6 +1617,7 @@ export function SettingsTabs({ type }: SettingsTabsProps) {
};
if (type === "model") {
const isAuthenticated = cloudProfile !== null && cloudProfile !== undefined;
const hasActiveSubscription = cloudProfile?.subscription.active === true;
const isCloudMode = !settings.useOwnKey;
const isCustom = settings.provider === "custom";
@ -2476,6 +2477,7 @@ export function SettingsTabs({ type }: SettingsTabsProps) {
}}
/>
{isAuthenticated && (
<div className="card" style={{ display: "flex", flexDirection: "column", gap: 12 }}>
<div>
<div style={{ fontSize: 15, fontWeight: 700, color: "var(--text-hi)", marginBottom: 4 }}>{t("models.mode.cloud")}</div>
@ -2535,6 +2537,7 @@ export function SettingsTabs({ type }: SettingsTabsProps) {
</div>
)}
</div>
)}
</>
)}