Remove unset icon, use local form instead of API

This commit is contained in:
Manuel Ruwe
2022-12-16 19:44:57 +01:00
parent 786ef505b4
commit 657e8c9102
4 changed files with 47 additions and 56 deletions

View File

@@ -1,12 +1,4 @@
import {
IconKey,
IconKeyOff,
IconLockOff,
IconPassword,
IconUser,
IconUserOff,
TablerIcon,
} from '@tabler/icons';
import { IconKey, IconPassword, IconUser, TablerIcon } from '@tabler/icons';
import { TileBaseType } from './tile';
export interface ServiceType extends TileBaseType {
@@ -62,7 +54,7 @@ export type ConfigServiceIntegrationType = Omit<ServiceIntegrationType, 'propert
export type ServiceIntegrationPropertyType = {
type: 'private' | 'public';
field: IntegrationField;
value?: string | null;
value?: string | undefined;
isDefined: boolean;
};
@@ -89,7 +81,6 @@ export const integrationFieldProperties: {
export type IntegrationFieldDefinitionType = {
type: 'private' | 'public';
icon: TablerIcon;
iconUnset: TablerIcon;
label: string;
};
@@ -99,19 +90,16 @@ export const integrationFieldDefinitions: {
apiKey: {
type: 'private',
icon: IconKey,
iconUnset: IconKeyOff,
label: 'API Key',
},
username: {
type: 'public',
icon: IconUser,
iconUnset: IconUserOff,
label: 'Username',
},
password: {
type: 'private',
icon: IconPassword,
iconUnset: IconLockOff,
label: 'Password',
},
};