From: Viktor Vorona Date: Wed, 25 Oct 2023 16:57:36 +0000 (+0200) Subject: SONAR-20864 UI for grace period X-Git-Tag: 10.3.0.82913~59 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e30de6ec75e3a5482a968861dd3a568221cf74a0;p=sonarqube.git SONAR-20864 UI for grace period --- 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) { 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; }