refactor: ENOKEYFILE messaging + button order (#856)

This commit is contained in:
Zack Spear
2024-03-05 12:07:20 -08:00
committed by GitHub
parent 0dcf785b45
commit 3f8b3536b5
2 changed files with 6 additions and 4 deletions
@@ -20,7 +20,9 @@ const showExpireTime = computed(() => (state.value === 'TRIAL' || state.value ==
<div class="flex flex-col gap-y-24px w-full min-w-300px md:min-w-[500px] max-w-xl p-16px">
<header>
<h2 class="text-24px text-center font-semibold" v-html="t(stateData.heading)" />
<div class="flex flex-col gap-y-8px" v-html="t(stateData.message)" />
<div
class="text-center prose text-16px leading-relaxed whitespace-normal opacity-75 gap-y-8px"
v-html="t(stateData.message)" />
<UpcUptimeExpire
v-if="showExpireTime"
class="text-center opacity-75 mt-12px"
+3 -3
View File
@@ -415,12 +415,12 @@ export const useServerStore = defineStore('server', () => {
return {
actions: [
...(!registered.value && connectPluginInstalled.value ? [signInAction.value] : []),
...([purchaseAction.value, redeemAction.value, trialStartAction.value, recoverAction.value]),
...([trialStartAction.value, purchaseAction.value, redeemAction.value, recoverAction.value]),
...(registered.value && connectPluginInstalled.value ? [signOutAction.value] : []),
],
humanReadable: 'No Keyfile',
heading: 'Let\'s Unleash your Hardware!',
message: '<p>Your server will not be usable until you purchase a Registration key or install a free 30 day <em>Trial</em> key. A <em>Trial</em> key provides all the functionality of a Pro Registration key.</p><p>Registration keys are bound to your USB Flash boot device serial number (GUID). Please use a high quality name brand device at least 1GB in size.</p><p>Note: USB memory card readers are generally not supported because most do not present unique serial numbers.</p><p><strong>Important:</strong></p><ul class=\'list-disc pl-16px\'><li>Please make sure your server time is accurate to within 5 minutes</li><li>Please make sure there is a DNS server specified</li></ul>',
heading: 'Let\'s Unleash Your Hardware',
message: '<p>Choose an option below, then use our <a href="https://unraid.net/getting-started" target="_blank" rel="noreffer noopener">Getting Started Guide</a> to configure your array in less than 15 minutes.</p>',
};
case 'TRIAL':
return {