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) => {