File tree Expand file tree Collapse file tree 4 files changed +38
-1
lines changed
Components/DevtronLicenseCard Expand file tree Collapse file tree 4 files changed +38
-1
lines changed Original file line number Diff line number Diff line change
1
+ import { ClipboardButton } from '@Common/index'
2
+
3
+ import { DOCUMENTATION_HOME_PAGE } from '@Common/Constants'
4
+ import { InfoIconTippy } from '..'
5
+ import { InstallFingerprintInfoProps } from './types'
6
+
7
+ const InstallationFingerprintInfo = ( { fingerprint, showHelpTooltip = false } : InstallFingerprintInfoProps ) => (
8
+ < div className = "flexbox-col dc__gap-6" >
9
+ < div className = "flexbox dc__align-items-center dc__gap-4" >
10
+ < span className = "fs-13 lh-20 cn-7 fw-4" > Installation Fingerprint</ span >
11
+ { showHelpTooltip && (
12
+ < InfoIconTippy
13
+ heading = "Installation Fingerprint"
14
+ infoText = "A unique fingerprint to identify your Devtron Installation. An enterprise license is generated against an installation fingerprint."
15
+ documentationLinkText = "Documentation"
16
+ iconClassName = "icon-dim-20 fcn-6"
17
+ placement = "right"
18
+ documentationLink = { DOCUMENTATION_HOME_PAGE }
19
+ />
20
+ ) }
21
+ </ div >
22
+ < div className = "flex dc__gap-8" >
23
+ < span className = "cn-9 fs-13 lh-1-5 fw-4 dc__truncate" > { fingerprint } </ span >
24
+ < ClipboardButton content = { fingerprint } />
25
+ </ div >
26
+ </ div >
27
+ )
28
+
29
+ export default InstallationFingerprintInfo
Original file line number Diff line number Diff line change 1
1
export { default as DevtronLicenseCard } from './DevtronLicenseCard'
2
+ export { default as InstallationFingerprintInfo } from './InstallationFingerprintInfo'
Original file line number Diff line number Diff line change
1
+ import { DevtronLicenseBaseDTO } from '@Shared/index'
2
+
3
+ export interface InstallFingerprintInfoProps extends Pick < DevtronLicenseBaseDTO , 'fingerprint' > {
4
+ showHelpTooltip ?: boolean
5
+ }
Original file line number Diff line number Diff line change @@ -1097,6 +1097,8 @@ export const parseDevtronLicenseDTOIntoLicenseCardData = <isCentralDashboard ext
1097
1097
ttl,
1098
1098
licenseStatus : getDevtronLicenseStatus ( { ttl, reminderThreshold } ) ,
1099
1099
isTrial,
1100
- ...( currentUserEmail === claimedByUserDetails ?. email ? { licenseKey : license } : { licenseSuffix : license } ) ,
1100
+ ...( currentUserEmail && currentUserEmail === claimedByUserDetails ?. email
1101
+ ? { licenseKey : license }
1102
+ : { licenseSuffix : license } ) ,
1101
1103
}
1102
1104
}
You can’t perform that action at this time.
0 commit comments