mirror of
https://github.com/unraid/api.git
synced 2025-12-31 05:29:48 -06:00
fix: add INELIGIBLE state to ConfigErrorState enum (#1220)
This commit is contained in:
@@ -285,6 +285,7 @@ export type Config = Node & {
|
||||
};
|
||||
|
||||
export enum ConfigErrorState {
|
||||
INELIGIBLE = 'INELIGIBLE',
|
||||
INVALID = 'INVALID',
|
||||
NO_KEY_SERVER = 'NO_KEY_SERVER',
|
||||
UNKNOWN_ERROR = 'UNKNOWN_ERROR',
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
enum ConfigErrorState {
|
||||
UNKNOWN_ERROR
|
||||
INVALID
|
||||
NO_KEY_SERVER
|
||||
WITHDRAWN
|
||||
}
|
||||
|
||||
type Config implements Node {
|
||||
id: ID!
|
||||
valid: Boolean
|
||||
|
||||
@@ -8,6 +8,7 @@ type Subscription {
|
||||
|
||||
enum ConfigErrorState {
|
||||
UNKNOWN_ERROR
|
||||
INELIGIBLE
|
||||
INVALID
|
||||
NO_KEY_SERVER
|
||||
WITHDRAWN
|
||||
|
||||
@@ -1 +1 @@
|
||||
1740588065597
|
||||
1741881521869
|
||||
@@ -676,7 +676,7 @@ echo "</div>";
|
||||
echo "<div class='nav-tile right'>";
|
||||
if (isset($myPage['Lock'])) {
|
||||
$title = $themes2 ? "" : _('Unlock sortable items');
|
||||
echo "<div class='nav-item LockButton util'><a 'href='#' class='hand' onclick='LockButton();return false;' title=\"$title\"><b class='icon-u-lock system green-text'></b><span>"._('Unlock sortable items')."</span></a></div>";
|
||||
echo "<div class='nav-item LockButton util'><a href='#' class='hand' onclick='LockButton();return false;' title=\"$title\"><b class='icon-u-lock system green-text'></b><span>"._('Unlock sortable items')."</span></a></div>";
|
||||
}
|
||||
if ($display['usage']) my_usage();
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
1740588063495
|
||||
1741881520894
|
||||
@@ -1 +1 @@
|
||||
1740588063858
|
||||
1741881521463
|
||||
@@ -1 +1 @@
|
||||
1740588065854
|
||||
1741881522200
|
||||
@@ -667,7 +667,7 @@ echo "</div>";
|
||||
echo "<div class='nav-tile right'>";
|
||||
if (isset($myPage['Lock'])) {
|
||||
$title = $themes2 ? "" : _('Unlock sortable items');
|
||||
echo "<div class='nav-item LockButton util'><a 'href='#' class='hand' onclick='LockButton();return false;' title=\"$title\"><b class='icon-u-lock system green-text'></b><span>"._('Unlock sortable items')."</span></a></div>";
|
||||
echo "<div class='nav-item LockButton util'><a href='#' class='hand' onclick='LockButton();return false;' title=\"$title\"><b class='icon-u-lock system green-text'></b><span>"._('Unlock sortable items')."</span></a></div>";
|
||||
}
|
||||
if ($display['usage']) my_usage();
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ if (!function_exists('ipaddr')) {
|
||||
}
|
||||
$configErrorEnum = [ // used to map $var['configValid'] value to mimic unraid-api's `configError` ENUM
|
||||
"error" => 'UNKNOWN_ERROR',
|
||||
"ineligible" => 'INELIGIBLE',
|
||||
"invalid" => 'INVALID',
|
||||
"nokeyserver" => 'NO_KEY_SERVER',
|
||||
"withdrawn" => 'WITHDRAWN',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
|
||||
/* eslint-disable */
|
||||
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
||||
export type Maybe<T> = T | null;
|
||||
export type InputMaybe<T> = Maybe<T>;
|
||||
@@ -288,6 +288,7 @@ export type Config = Node & {
|
||||
};
|
||||
|
||||
export enum ConfigErrorState {
|
||||
Ineligible = 'INELIGIBLE',
|
||||
Invalid = 'INVALID',
|
||||
NoKeyServer = 'NO_KEY_SERVER',
|
||||
UnknownError = 'UNKNOWN_ERROR',
|
||||
@@ -371,6 +372,7 @@ export type Disk = {
|
||||
bytesPerSector: Scalars['Long']['output'];
|
||||
device: Scalars['String']['output'];
|
||||
firmwareRevision: Scalars['String']['output'];
|
||||
id: Scalars['ID']['output'];
|
||||
interfaceType: DiskInterfaceType;
|
||||
name: Scalars['String']['output'];
|
||||
partitions?: Maybe<Array<DiskPartition>>;
|
||||
|
||||
@@ -792,7 +792,6 @@ export const useServerStore = defineStore('server', () => {
|
||||
// ref: 'configError',
|
||||
// type: 'server',
|
||||
// };
|
||||
//@ts-expect-error - causing a build-breaking type error, but seems plausible, so i kept it around - pujitm
|
||||
case 'INELIGIBLE':
|
||||
return {
|
||||
heading: 'Ineligible for OS Version',
|
||||
|
||||
Reference in New Issue
Block a user