Web:Common Added forum link

This commit is contained in:
Akmal Isomadinov 2023-12-14 15:40:50 +05:00
parent f3e839cf0d
commit d9729ee270
3 changed files with 14 additions and 3 deletions

View File

@ -1,5 +1,6 @@
import type { PlacesType } from "react-tooltip";
interface BetaBadgeProps {
forumLink?: string;
documentationEmail?: string;
currentColorScheme?: any;
currentDeviceType?: "desktop" | "tablet" | "mobile";

View File

@ -13,6 +13,7 @@ const OtherOffset = 10;
function BetaBadge({
place,
forumLink,
mobilePlace = "bottom-end",
currentColorScheme,
documentationEmail,
@ -29,8 +30,9 @@ function BetaBadge({
If you have found a bug, please submit it via
{/*@ts-ignore */}
<Link
href={`mailto:${documentationEmail}`}
href={forumLink}
color={currentColorScheme?.main?.accent}
target="_blank"
>
form
</Link>
@ -64,11 +66,18 @@ function BetaBadge({
export default inject<any>(({ auth }) => {
const {
helpLink,
forumLink,
currentColorScheme,
documentationEmail,
currentDeviceType,
} = auth.settingsStore;
return { documentationEmail, currentColorScheme, currentDeviceType };
console.log({ ...auth.settingsStore });
return {
documentationEmail,
currentColorScheme,
currentDeviceType,
forumLink,
};
})(observer(BetaBadge));

View File

@ -95,6 +95,7 @@ class SettingsStore {
urlLicense = "https://gnu.org/licenses/gpl-3.0.html";
urlSupport = "https://helpdesk.onlyoffice.com/";
forumLink = null;
formGallery = {
url: "",
ext: ".oform",