diff options
author | Pascal Mugnier <pascal.mugnier@sonarsource.com> | 2018-05-01 15:26:39 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-05-03 20:20:49 +0200 |
commit | c9f8e544ded8b8add74dc0d83dee9d9ae6be4da3 (patch) | |
tree | a4d0d1259b939a73847640ff57e73b6b26f05ef9 /server | |
parent | 142818d2966f03f35a306b7ed4b9d990457cd7c9 (diff) | |
download | sonarqube-c9f8e544ded8b8add74dc0d83dee9d9ae6be4da3.tar.gz sonarqube-c9f8e544ded8b8add74dc0d83dee9d9ae6be4da3.zip |
Fix SONAR-10553
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projectActivity/components/Event.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/Event.js b/server/sonar-web/src/main/js/apps/projectActivity/components/Event.js index e9b3629546b..6d25558770f 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/components/Event.js +++ b/server/sonar-web/src/main/js/apps/projectActivity/components/Event.js @@ -22,7 +22,9 @@ import React from 'react'; import EventInner from './EventInner'; import ChangeEventForm from './forms/ChangeEventForm'; import RemoveEventForm from './forms/RemoveEventForm'; +import Tooltip from '../../../components/controls/Tooltip'; import { DeleteButton, EditButton } from '../../../components/ui/buttons'; +import { translate } from '../../../helpers/l10n'; /*:: import type { Event as EventType } from '../types'; */ /*:: @@ -94,10 +96,17 @@ export default class Event extends React.PureComponent { {showActions && ( <div className="project-activity-event-actions spacer-left"> {canChange && ( - <EditButton className="js-change-event button-small" onClick={this.startChanging} /> + <Tooltip overlay={translate('project_activity.events.tooltip.edit')}> + <EditButton className="js-change-event button-small" onClick={this.startChanging} /> + </Tooltip> )} {canDelete && ( - <DeleteButton className="js-delete-event button-small" onClick={this.startDeleting} /> + <Tooltip overlay={translate('project_activity.events.tooltip.delete')}> + <DeleteButton + className="js-delete-event button-small" + onClick={this.startDeleting} + /> + </Tooltip> )} </div> )} |