From e30de6ec75e3a5482a968861dd3a568221cf74a0 Mon Sep 17 00:00:00 2001 From: Viktor Vorona Date: Wed, 25 Oct 2023 18:57:36 +0200 Subject: [PATCH] SONAR-20864 UI for grace period --- server/sonar-web/src/main/js/helpers/mocks/editions.ts | 1 + server/sonar-web/src/main/js/types/editions.ts | 3 +++ 2 files changed, 4 insertions(+) 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; } -- 2.39.5