diff options
author | Wouter Admiraal <wouter.admiraal@sonarsource.com> | 2022-01-19 13:40:42 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-01-20 20:02:44 +0000 |
commit | af0d50a5635d898174484c5072bbcf24c468df69 (patch) | |
tree | afa62550004f3568147c5e7aa2fa7fe995c83e47 | |
parent | b327f02eef596d57f946efbf790cd7017d0d4dde (diff) | |
download | sonarqube-af0d50a5635d898174484c5072bbcf24c468df69.tar.gz sonarqube-af0d50a5635d898174484c5072bbcf24c468df69.zip |
SONAR-15929 Update tooltip to reflect new deprecation policy
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.tsx b/server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.tsx index 4c59dec8ad8..96f07462464 100644 --- a/server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.tsx +++ b/server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.tsx @@ -25,7 +25,7 @@ import { parseVersion } from '../utils'; export default function DeprecatedBadge({ since }: { since?: string }) { const version = since && parseVersion(since); const overlay = version - ? translateWithParameters('api_documentation.will_be_removed_in_x', `${version.major + 2}.0`) + ? translateWithParameters('api_documentation.will_be_removed_in_x', `${version.major + 1}.0`) : translate('api_documentation.deprecation_tooltip'); const label = since ? translateWithParameters('api_documentation.deprecated_since_x', since) diff --git a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/DeprecatedBadge-test.tsx.snap b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/DeprecatedBadge-test.tsx.snap index d0b09b12326..19006a173f4 100644 --- a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/DeprecatedBadge-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/DeprecatedBadge-test.tsx.snap @@ -14,7 +14,7 @@ exports[`should render with malformed version 1`] = ` exports[`should render with version 1`] = ` <Tooltip - overlay="api_documentation.will_be_removed_in_x.7.0" + overlay="api_documentation.will_be_removed_in_x.6.0" > <span className="badge badge-warning" |