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

View File

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