Skip to content

Commit db4bcbb

Browse files
committed
chore: bump version to 1.21.1-beta-2; update License component to use isSaasInstance and add it to DevtronLicenseDTO
1 parent 319dac7 commit db4bcbb

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.21.1-beta-1",
3+
"version": "1.21.1-beta-2",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/License/utils.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const parseDevtronLicenseDTOIntoLicenseCardData = <isCentralDashboard ext
7676
claimedByUserDetails,
7777
isFreemium,
7878
licenseStatusError,
79-
instanceData,
79+
isSaasInstance,
8080
} = licenseDTO || {}
8181

8282
return {
@@ -87,8 +87,7 @@ export const parseDevtronLicenseDTOIntoLicenseCardData = <isCentralDashboard ext
8787
isTrial,
8888
isFreemium,
8989
licenseStatusError,
90-
// TODO: Move this check to key later
91-
isSaasInstance: !!instanceData?.devtronUrl,
90+
isSaasInstance: !!isSaasInstance,
9291
...(currentUserEmail && currentUserEmail === claimedByUserDetails?.email
9392
? { licenseKey: license }
9493
: { licenseSuffix: license }),

src/Shared/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,6 +1128,7 @@ export interface DevtronLicenseBaseDTO {
11281128
domain: string | null
11291129
} | null
11301130
license: string | null
1131+
isSaasInstance?: boolean
11311132
}
11321133

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

0 commit comments

Comments
 (0)