Skip to content

[UI] Add link to join Discord server in the "Report a problem..." dialog #3339

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@
"copy-to-clipboard": "Copy log content to clipboard",
"instructions": "Join our Discord and look for the \"#-support\" section. Read the pinned \"Read Me First | Frequently Asked Questions\" thread and follow the instructions to share these logs and any relevant information about your problem.",
"instructions_title": "How to report a problem?",
"join-heroic-discord": "Join our Discord",
"no-file": "No log file found",
"show-in-folder": "Show log file in folder"
},
Expand Down
16 changes: 16 additions & 0 deletions src/frontend/screens/Settings/sections/LogSettings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import SettingsContext from '../../SettingsContext'
import './index.css'
import ContextProvider from 'frontend/state/ContextProvider'
import { GameInfo } from 'common/types'
import { openDiscordLink } from 'frontend/helpers'
import { faDiscord } from '@fortawesome/free-brands-svg-icons'

interface LogBoxProps {
logFileContent: string
Expand Down Expand Up @@ -215,6 +217,20 @@ export default function LogSettings() {
</span>
</div>
</a>
<a
onClick={openDiscordLink}
title={t('setting.log.join-heroic-discord', 'Join our Discord')}
className="button is-footer"
>
<div className="button-icontext-flex">
<div className="button-icon-flex">
<FontAwesomeIcon icon={faDiscord} />
</div>
<span className="button-icon-text">
{t('setting.log.join-heroic-discord', 'Join our Discord')}
</span>
</div>
</a>
</span>
)}
</>
Expand Down