diff options
author | Viktor Vorona <viktor.vorona@sonarsource.com> | 2023-10-25 18:57:36 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-11-08 20:02:52 +0000 |
commit | 43762923120075854346bfcd60e3e2dc27edf932 (patch) | |
tree | f1ec0afae0db9c0af65cc175acfaf41b798d4089 | |
parent | dc731234d9d4dbd24b456b2cdf3dc0386bd29741 (diff) | |
download | sonarqube-43762923120075854346bfcd60e3e2dc27edf932.tar.gz sonarqube-43762923120075854346bfcd60e3e2dc27edf932.zip |
SONAR-20864 UI for grace period
-rw-r--r-- | server/sonar-web/src/main/js/helpers/mocks/editions.ts | 1 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/types/editions.ts | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/mocks/editions.ts b/server/sonar-web/src/main/js/helpers/mocks/editions.ts index 976445dca5e..a0136a8eb19 100644 --- a/server/sonar-web/src/main/js/helpers/mocks/editions.ts +++ b/server/sonar-web/src/main/js/helpers/mocks/editions.ts @@ -29,6 +29,7 @@ export function mockLicense(override?: Partial<License>) { isValidServerId: true, isOfficialDistribution: true, isSupported: false, + canActivateGracePeriod: false, loc: 120085, maxLoc: 500000, plugins: ['Branches', 'PLI language'], diff --git a/server/sonar-web/src/main/js/types/editions.ts b/server/sonar-web/src/main/js/types/editions.ts index ea48302de84..fd522ac664e 100644 --- a/server/sonar-web/src/main/js/types/editions.ts +++ b/server/sonar-web/src/main/js/types/editions.ts @@ -48,4 +48,7 @@ export interface License { remainingLocThreshold: number; serverId: string; type: string; + canActivateGracePeriod: boolean; + gracePeriodEndDate?: string; + gracePeriodExpired?: boolean; } |