Web: Common: moved supportEmail to SettingsStore

This commit is contained in:
Nikita Gopienko 2023-04-07 14:05:01 +03:00
parent aa709d1036
commit eb755a3207
2 changed files with 12 additions and 5 deletions

View File

@ -53,6 +53,7 @@ const MainProfile = (props) => {
sendActivationLink,
currentColorScheme,
updateProfileCulture,
documentationEmail,
} = props;
const [horizontalOrientation, setHorizontalOrientation] = useState(false);
@ -83,19 +84,17 @@ const MainProfile = (props) => {
? profile.avatarMax
: DefaultUserAvatarMax;
const supportEmail = "documentation@onlyoffice.com";
const tooltipLanguage = (
<Text fontSize="13px">
<Trans t={t} i18nKey="NotFoundLanguage" ns="Common">
"In case you cannot find your language in the list of the available
ones, feel free to write to us at
<Link
href={`mailto:${supportEmail}`}
href={`mailto:${documentationEmail}`}
isHovered={true}
color={theme.profileInfo.tooltipLinkColor}
>
{{ supportEmail }}
{{ supportEmail: documentationEmail }}
</Link>
to take part in the translation and get up to 1 year free of charge."
</Trans>{" "}
@ -431,7 +430,13 @@ const MainProfile = (props) => {
export default inject(({ auth, peopleStore }) => {
const { withActivationBar, sendActivationLink } = auth.userStore;
const { theme, helpLink, culture, currentColorScheme } = auth.settingsStore;
const {
theme,
helpLink,
culture,
currentColorScheme,
documentationEmail,
} = auth.settingsStore;
const { setIsLoading } = peopleStore.loadingStore;
const {
@ -465,5 +470,6 @@ export default inject(({ auth, peopleStore }) => {
sendActivationLink,
currentColorScheme,
updateProfileCulture,
documentationEmail,
};
})(withCultureNames(observer(MainProfile)));

View File

@ -122,6 +122,7 @@ class SettingsStore {
tenantStatus = null;
helpLink = null;
documentationEmail = null;
hotkeyPanelVisible = false;
frameConfig = null;