diff --git a/packages/client/src/pages/About/AboutContent.js b/packages/client/src/pages/About/AboutContent.js index eb462d49c1..839c521904 100644 --- a/packages/client/src/pages/About/AboutContent.js +++ b/packages/client/src/pages/About/AboutContent.js @@ -100,10 +100,18 @@ const StyledAboutBody = styled.div` `; const AboutContent = (props) => { - const { buildVersionInfo, theme, companyInfoSettingsData, previewData } = - props; - const { t } = useTranslation("About"); - const license = "AGPL-3.0"; + const { + buildVersionInfo, + theme, + companyInfoSettingsData, + previewData, + standalone, + licenseUrl, + isEnterprise, + } = props; + const { t } = useTranslation(["About", "Common"]); + const isCommercial = !standalone || isEnterprise; + const license = isCommercial ? t("Common:Commercial") : "AGPL-3.0"; const linkRepo = "https://github.com/ONLYOFFICE/DocSpace"; const linkDocs = "https://github.com/ONLYOFFICE/DocumentServer"; @@ -198,9 +206,25 @@ const AboutContent = (props) => { {t("SoftwareLicense")}:{" "} - -  {license} - + {isCommercial ? ( + +  {license} + + ) : ( + +  {license} + + )} @@ -268,11 +292,16 @@ const AboutContent = (props) => { ); }; -export default inject(({ settingsStore }) => { - const { theme, companyInfoSettingsData } = settingsStore; +export default inject(({ settingsStore, currentTariffStatusStore }) => { + const { theme, companyInfoSettingsData, standalone, licenseUrl } = + settingsStore; + const { isEnterprise } = currentTariffStatusStore; return { theme, companyInfoSettingsData, + standalone, + licenseUrl, + isEnterprise, }; })(observer(AboutContent)); diff --git a/packages/shared/store/SettingsStore.ts b/packages/shared/store/SettingsStore.ts index f624db9937..7b43a14374 100644 --- a/packages/shared/store/SettingsStore.ts +++ b/packages/shared/store/SettingsStore.ts @@ -257,6 +257,8 @@ class SettingsStore { apiDocsLink = null; + licenseUrl = null; + bookTrainingEmail = null; hotkeyPanelVisible = false; diff --git a/public/locales/en/Common.json b/public/locales/en/Common.json index d95da87f70..dbb6e53f27 100644 --- a/public/locales/en/Common.json +++ b/public/locales/en/Common.json @@ -52,6 +52,7 @@ "ComingSoon": "Coming soon", "Comment": "Comment", "Comments": "Comments", + "Commercial": "Commercial", "Common": "Common", "CommonFiles": "Common files", "CompanyName": "Company name",