Skip to content

Commit 6065b20

Browse files
committed
feat: add licenseStatusError in license dto
1 parent 3cae449 commit 6065b20

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const DevtronLicenseCard = ({
8989
</div>
9090
{licenseKey && <ClipboardButton content={licenseKey} />}
9191
</div>
92-
<div className="flexbox dc__align-items-center dc__gap-4">
92+
<div className="flexbox dc__align-items-center dc__gap-4 font-ibm-plex-mono">
9393
<span>{expiryDate}</span>
9494
<span></span>
9595
<span style={{ color: textColor }}>{remainingTimeString}</span>

src/Shared/types.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,20 @@ export interface AppEnvIdType {
10321032
envId: number
10331033
}
10341034

1035+
export enum LicensingErrorCodes {
1036+
FingerPrintMisMatch = '11001',
1037+
LicenseExpired = '11002',
1038+
TamperedCertificate = '11002',
1039+
NoPublicKey = '11003',
1040+
InstallationModeMismatch = '11004',
1041+
NoCertFound = '11006',
1042+
}
1043+
1044+
export interface LicenseErrorStruct {
1045+
code: LicensingErrorCodes
1046+
userMessage: string
1047+
}
1048+
10351049
export interface DevtronLicenseBaseDTO {
10361050
fingerprint: string | null
10371051
isTrial: boolean | null
@@ -1053,6 +1067,8 @@ export interface DevtronLicenseBaseDTO {
10531067
domain: string | null
10541068
} | null
10551069
license: string | null
1070+
showLicenseData: boolean
1071+
licenseStatusError?: LicenseErrorStruct
10561072
}
10571073

10581074
export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = DevtronLicenseBaseDTO &

0 commit comments

Comments
 (0)