Skip to content

Commit

Permalink
EPMRPP-98422 || There is not tooltip for the Admin label on the Organ…
Browse files Browse the repository at this point in the history
…ization Users page (#4146)
  • Loading branch information
BlazarQSO authored Jan 9, 2025
1 parent 714e367 commit 3ee3cf8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { FormattedMessage, useIntl } from 'react-intl';
import { useMemo } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { AbsRelTime } from 'components/main/absRelTime';
import { MeatballMenuIcon, Popover } from '@reportportal/ui-kit';
import { MeatballMenuIcon, Popover, Tooltip } from '@reportportal/ui-kit';
import { urlOrganizationAndProjectSelector } from 'controllers/pages';
import { SORTING_ASC, withSortingURL } from 'controllers/sorting';
import { DEFAULT_SORT_COLUMN } from 'controllers/members/constants';
Expand Down Expand Up @@ -79,9 +79,17 @@ const OrgTeamListTableWrapped = ({
<div className={cx('member-name-column')}>
<div className={cx('full-name')}>{fullName}</div>
{instanceRole === ADMINISTRATOR && (
<div className={cx('admin-badge')}>
<FormattedMessage id={'UserBlock.adminBadge'} defaultMessage={'admin'} />
</div>
<Tooltip
key={`${id}-tooltip`}
content={formatMessage(messages.adminAccessInfo)}
placement="top"
width={248}
wrapperClassName={cx('tooltip')}
>
<div className={cx('admin-badge')}>
<FormattedMessage id={'UserBlock.adminBadge'} defaultMessage={'admin'} />
</div>
</Tooltip>
)}
</div>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
font-family: $FONT-ROBOTO-BOLD;
font-size: 11px;
line-height: 16px;
margin-right: 16px;
}

.tooltip {
width: fit-content;
}

.member-name-column {
Expand Down

0 comments on commit 3ee3cf8

Please sign in to comment.