Skip to content

Commit d6fa102

Browse files
refactor: use go links for docs (#1552)
Update hardcoded doc links to use go-links and move them to a constants file. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 52f2267 commit d6fa102

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

web/components/Activation/ActivationModal.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import ActivationPartnerLogo from '~/components/Activation/ActivationPartnerLogo
1212
import ActivationSteps from '~/components/Activation/ActivationSteps.vue';
1313
import { useActivationCodeDataStore } from '~/components/Activation/store/activationCodeData';
1414
import { useActivationCodeModalStore } from '~/components/Activation/store/activationCodeModal';
15+
import { DOCS_URL_ACCOUNT, DOCS_URL_LICENSING_FAQ } from '~/consts';
1516
import { usePurchaseStore } from '~/store/purchase';
1617
import { useThemeStore } from '~/store/theme';
1718
@@ -39,15 +40,15 @@ const docsButtons = computed<BrandButtonProps[]>(() => {
3940
{
4041
variant: 'underline',
4142
external: true,
42-
href: 'https://docs.unraid.net/unraid-os/faq/licensing-faq/',
43+
href: DOCS_URL_LICENSING_FAQ,
4344
iconRight: ArrowTopRightOnSquareIcon,
4445
size: '14px',
4546
text: props.t('More about Licensing'),
4647
},
4748
{
4849
variant: 'underline',
4950
external: true,
50-
href: 'https://docs.unraid.net/account/',
51+
href: DOCS_URL_ACCOUNT,
5152
iconRight: ArrowTopRightOnSquareIcon,
5253
size: '14px',
5354
text: props.t('More about Unraid.net Accounts'),

web/consts.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
export const ACTIVATION_CODE_MODAL_HIDDEN_STORAGE_KEY = 'activationCodeModalHidden';
2+
3+
export const DOCS_URL_LICENSING_FAQ = 'https://docs.unraid.net/go/faq-licensing/';
4+
export const DOCS_URL_ACCOUNT = 'https://docs.unraid.net/go/account/';

0 commit comments

Comments
 (0)