From 3ee8fdfa9416353176abacdec921476ff86f400e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B8=D0=BA=D1=82=D0=BE=D1=80?= Date: Tue, 6 Oct 2026 02:19:34 +0900 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BA=D1=80=D1=8B=D1=82=D0=BE=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B5=D0=B4=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?Enterprise:=20=D0=B1=D0=B5=D1=81=D0=BF=D0=BB=D0=B0=D1=82=D0=BD?= =?UTF-8?q?=D0=B0=D1=8F=20=D1=80=D0=B5=D0=B4=D0=B0=D0=BA=D1=86=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5=D1=82?= =?UTF-8?q?=D1=81=D1=8F=20=D0=BA=D0=B0=D0=BA=20=D1=81=D0=B1=D0=BE=D1=80?= =?UTF-8?q?=D0=BA=D0=B0=20=D1=81=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D1=82?= =?UTF-8?q?=D1=8B=D0=BC=20=D0=BA=D0=BE=D0=B4=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Claude-Session: https://claude.ai/code/session_01BFaqS6mH9sa99RWghq2j46 --- src/components/layout/TopBar.tsx | 2 +- src/stores/accountStore.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/layout/TopBar.tsx b/src/components/layout/TopBar.tsx index 5a15914..57a7ff6 100644 --- a/src/components/layout/TopBar.tsx +++ b/src/components/layout/TopBar.tsx @@ -176,7 +176,7 @@ export function TopBar() { )} - {edition !== 'enterprise' && ( + {edition === 'community' && ( <> setUpsellOpen(true)}> diff --git a/src/stores/accountStore.ts b/src/stores/accountStore.ts index ce62ed7..bec3933 100644 --- a/src/stores/accountStore.ts +++ b/src/stores/accountStore.ts @@ -20,11 +20,13 @@ interface AccountState { export const useAccountStore = create()((set, get) => ({ permissions: [], - edition: 'community', + edition: 'oss', locale: 'en', + // StackWorks: Enterprise не покупаем, поэтому бесплатную редакцию показываем как сборку + // с открытым кодом - закрытые пункты скрыты, окно с предложением Enterprise не появляется. setAccountInfo: (permissions, edition, locale) => { - set({ permissions, edition, locale }); + set({ permissions, edition: edition === 'community' ? 'oss' : edition, locale }); }, hasPermission: (perm) => {