Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export function AboutModule({ }: AboutBoxProps) {
const page = usePageCtx()
const [theme] = useSharedState('theme')
const [notifications] = useSharedState('notifications')
const [account] = useSharedState('account')

// Donwload NethLink release page
const releasePage = 'https://nethserver.github.io/nethlink/'
Expand All @@ -24,8 +25,10 @@ export function AboutModule({ }: AboutBoxProps) {
window.api.openExternalPage(releasePage)
}

const openNethesisPage = () => {
window.api.openExternalPage('https://www.nethesis.it/')
const openCompanyUrl = () => {
if (account?.companyUrl) {
window.api.openExternalPage(account.companyUrl)
}
}

return (
Expand All @@ -46,9 +49,9 @@ export function AboutModule({ }: AboutBoxProps) {
NethLink by{' '}
<span
className="text-textBlueLight dark:text-textBlueDark cursor-pointer hover:underline"
onClick={openNethesisPage}
onClick={openCompanyUrl}
>
Nethesis
{account?.companyName}
</span>
</div>
</div>
Expand Down
Loading