aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/rules
diff options
context:
space:
mode:
authorRevanshu Paliwal <revanshu.paliwal@sonarsource.com>2022-07-18 11:14:02 +0200
committersonartech <sonartech@sonarsource.com>2022-07-21 20:03:06 +0000
commit38e8c4b38d1bc4bcc982349ce5ec3761b11a1398 (patch)
tree86ff6735ac07acd436a4dcb43dbee48cb240301b /server/sonar-web/src/main/js/components/rules
parent4d4fa01b933038ba8e9639679fab4a36b6eff91a (diff)
downloadsonarqube-38e8c4b38d1bc4bcc982349ce5ec3761b11a1398.tar.gz
sonarqube-38e8c4b38d1bc4bcc982349ce5ec3761b11a1398.zip
SONAR-16613 UI changes to use new API for sonarlint ad dismiss mechanism
Diffstat (limited to 'server/sonar-web/src/main/js/components/rules')
-rw-r--r--server/sonar-web/src/main/js/components/rules/TabViewer.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/rules/TabViewer.tsx b/server/sonar-web/src/main/js/components/rules/TabViewer.tsx
index 0d781222ee1..47c7ac8210c 100644
--- a/server/sonar-web/src/main/js/components/rules/TabViewer.tsx
+++ b/server/sonar-web/src/main/js/components/rules/TabViewer.tsx
@@ -20,7 +20,7 @@
import classNames from 'classnames';
import { debounce, Dictionary } from 'lodash';
import * as React from 'react';
-import { dismissNotification, getCurrentUser } from '../../api/users';
+import { dismissNotice, getCurrentUser } from '../../api/users';
import { RuleDescriptionSection, RuleDescriptionSections } from '../../apps/coding-rules/rule';
import { RuleDetails } from '../../types/types';
import { CurrentUser, NoticeType } from '../../types/users';
@@ -112,7 +112,7 @@ export default class TabViewer extends React.PureComponent<Props, State> {
const rect = this.educationPrinciplesRef.current.getBoundingClientRect();
const isView = rect.top <= (window.innerHeight || document.documentElement.clientHeight);
if (isView && this.showNotification) {
- dismissNotification(NoticeType.EDUCATION_PRINCIPLES)
+ dismissNotice(NoticeType.EDUCATION_PRINCIPLES)
.then(() => {
document.removeEventListener('scroll', this.checkIfConceptIsVisible, { capture: true });
this.showNotification = false;