refactor: registration transfer check ineligible copy

This commit is contained in:
Zack Spear
2024-08-12 17:19:38 -07:00
committed by Zack Spear
parent ff67b54a1b
commit 9ea2327fa0
4 changed files with 27 additions and 10 deletions

View File

@@ -6,7 +6,7 @@ import {
import { storeToRefs } from 'pinia';
import type { ComposerTranslation } from 'vue-i18n';
import { DOCS_REGISTRATION_REPLACE_KEY } from '~/helpers/urls';
import { DOCS_REGISTRATION_REPLACE_KEY, UNRAID_NET_SUPPORT } from '~/helpers/urls';
import { useReplaceRenewStore } from '~/store/replaceRenew';
const replaceRenewStore = useReplaceRenewStore();
@@ -36,13 +36,24 @@ defineProps<{
{{ t(replaceStatusOutput.text ?? 'Unknown') }}
</UiBadge>
<BrandButton
btn-style="underline"
:external="true"
:href="DOCS_REGISTRATION_REPLACE_KEY.toString()"
:icon-right="ArrowTopRightOnSquareIcon"
:text="t('Learn More')"
class="text-14px"
/>
<span class="inline-flex flex-wrap items-center justify-end gap-8px">
<BrandButton
btn-style="underline"
:external="true"
:href="DOCS_REGISTRATION_REPLACE_KEY.toString()"
:icon-right="ArrowTopRightOnSquareIcon"
:text="t('Learn More')"
class="text-14px"
/>
<BrandButton
v-if="replaceStatusOutput?.text !== 'eligible' && replaceStatusOutput?.text !== 'checking'"
btn-style="underline"
:external="true"
:href="UNRAID_NET_SUPPORT.toString()"
:icon-right="ArrowTopRightOnSquareIcon"
:text="t('Contact Support')"
class="text-14px"
/>
</span>
</div>
</template>

View File

@@ -11,6 +11,7 @@ const CONNECT_FORUMS = new URL('/forum/94-connect-plugin-support/', FORUMS);
const CONTACT = new URL('/contact', UNRAID_NET);
const DISCORD = new URL('https://discord.unraid.net');
const PURCHASE_CALLBACK = new URL('/c', UNRAID_NET);
const UNRAID_NET_SUPPORT = new URL('/support', UNRAID_NET);
const WEBGUI = new URL(import.meta.env.VITE_WEBGUI ?? window.location.origin);
const WEBGUI_GRAPHQL = new URL('/graphql', WEBGUI);
@@ -26,6 +27,8 @@ const DOCS_RELEASE_NOTES = new URL('/go/release-notes/', DOCS);
const DOCS_REGISTRATION_LICENSING = new URL('/go/faq-licensing/', DOCS);
const DOCS_REGISTRATION_REPLACE_KEY = new URL('/go/changing-the-flash-device/', DOCS);
const SUPPORT = new URL('https://unraid.net');
export {
ACCOUNT,
ACCOUNT_CALLBACK,
@@ -49,4 +52,6 @@ export {
WEBGUI_TOOLS_DOWNGRADE,
WEBGUI_TOOLS_REGISTRATION,
WEBGUI_TOOLS_UPDATE,
SUPPORT,
UNRAID_NET_SUPPORT,
};

View File

@@ -141,6 +141,7 @@
"Ineligible for feature updates released after {0}": "Ineligible for feature updates released after {0}",
"Ineligible for Unraid OS updates": "Ineligible for Unraid OS updates",
"Ineligible": "Ineligible",
"Ineligible for self-replacement": "Ineligible for self-replacement",
"Install Connect": "Install Connect",
"Install Extended": "Install Extended",
"Install Recovered": "Install Recovered",

View File

@@ -130,7 +130,7 @@ export const useReplaceRenewStore = defineStore('replaceRenewCheck', () => {
return {
color: 'red',
icon: XCircleIcon,
text: 'Ineligible',
text: 'Ineligible for self-replacement',
};
case 'ready':
default: