From d26db95b948a1a52eb331e6bab06688858b8ad42 Mon Sep 17 00:00:00 2001 From: guillaume-peoch-sonarsource <91735163+guillaume-peoch-sonarsource@users.noreply.github.com> Date: Tue, 2 Nov 2021 15:23:44 +0100 Subject: SONAR-15588 Dismiss sonarlint promotion --- server/sonar-web/src/main/js/api/users.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/sonar-web/src/main/js/api') diff --git a/server/sonar-web/src/main/js/api/users.ts b/server/sonar-web/src/main/js/api/users.ts index 9d8282ba5be..73cee845733 100644 --- a/server/sonar-web/src/main/js/api/users.ts +++ b/server/sonar-web/src/main/js/api/users.ts @@ -97,3 +97,7 @@ export function setHomePage(homepage: T.HomePage): Promise { export function setUserSetting(setting: T.CurrentUserSetting): Promise { return post('/api/users/set_setting', setting).catch(throwGlobalError); } + +export function dismissSonarlintAd(): Promise { + return post('/api/users/dismiss_sonarlint_ad').catch(throwGlobalError); +} -- cgit v1.2.3