fix: duplicate error message with no keyfile

This commit is contained in:
Zack Spear
2024-03-27 00:26:16 +09:00
parent 985ed5bad4
commit 533927c692
2 changed files with 12 additions and 12 deletions

View File

@@ -47,8 +47,8 @@ import type {
// '1111-1111-5GDB-123412341234' Starter.key = TkJCrVyXMLWWGKZF6TCEvf0C86UYI9KfUDSOm7JoFP19tOMTMgLKcJ6QIOt9_9Psg_t0yF-ANmzSgZzCo94ljXoPm4BESFByR0K7nyY9KVvU8szLEUcBUT3xC2adxLrAXFNxiPeK-mZqt34n16uETKYvLKL_Sr5_JziG5L5lJFBqYZCPmfLMiguFo1vp0xL8pnBH7q8bYoBnePrAcAVb9mAGxFVPEInSPkMBfC67JLHz7XY1Y_K5bYIq3go9XPtLltJ53_U4BQiMHooXUBJCKXodpqoGxq0eV0IhNEYdauAhnTsG90qmGZig0hZalQ0soouc4JZEMiYEcZbn9mBxPg
const state: ServerState = 'STARTER';
const currentFlashGuid = '1111-1111-SDFF-TEST1234ZACK'; // this is the flash drive that's been booted from
const regGuid = '1111-1111-SDFF-TEST1234ZACK'; // this guid is registered in key server
const currentFlashGuid = '1111-1111-SDDD-TEST1234ZACK '; // this is the flash drive that's been booted from
const regGuid = '1111-1111-SDDD-TEST1234ZACK '; // this guid is registered in key server
const keyfileBase64 = ''; // @todo raycast download key to base64
// const randomGuid = `1111-1111-${makeid(4)}-123412341234`; // this guid is registered in key server
@@ -145,7 +145,7 @@ export const serverState: Server = {
},
connectPluginInstalled,
description: 'DevServer9000',
deviceCount: 8,
deviceCount: 4,
expireTime,
flashBackupActivated: !!connectPluginInstalled,
flashProduct: 'SanDisk_3.2Gen1',

View File

@@ -691,14 +691,14 @@ export const useServerStore = defineStore('server', () => {
const serverConfigError = computed((): Error | undefined => {
if (!config.value?.valid && config.value?.error) {
switch (config.value?.error) {
case 'UNKNOWN_ERROR':
return {
heading: 'Unknown Error',
level: 'error',
message: 'An unknown internal error occurred.',
ref: 'configError',
type: 'server',
};
// case 'UNKNOWN_ERROR':
// return {
// heading: 'Unknown Error',
// level: 'error',
// message: 'An unknown internal error occurred.',
// ref: 'configError',
// type: 'server',
// };
case 'INELIGIBLE':
return {
heading: 'Ineligible for OS Version',
@@ -716,7 +716,7 @@ export const useServerStore = defineStore('server', () => {
return {
heading: 'Too Many Devices',
level: 'error',
message: 'You have exceeded the number of devices allowed for your license. Please remove a device before adding another or upgrade your key to support more devices.',
message: 'You have exceeded the number of devices allowed for your license. Please remove a device before starting the array or upgrade your key to support more devices.',
ref: 'configError',
type: 'server',
};