|
@@ -12,6 +12,7 @@ import {Client} from 'app/api';
|
|
|
import Feature from 'app/components/acl/feature';
|
|
|
import DropdownMenu from 'app/components/dropdownMenu';
|
|
|
import EmptyStateWarning from 'app/components/emptyStateWarning';
|
|
|
+import FeatureBadge from 'app/components/featureBadge';
|
|
|
import MenuItem from 'app/components/menuItem';
|
|
|
import Pagination from 'app/components/pagination';
|
|
|
import TimeSince from 'app/components/timeSince';
|
|
@@ -201,12 +202,12 @@ class QueryList extends React.Component<Props> {
|
|
|
return (
|
|
|
hasFeature && (
|
|
|
<ContextMenu>
|
|
|
- <MenuItem
|
|
|
+ <StyledMenuItem
|
|
|
data-test-id="add-query-to-dashboard"
|
|
|
onClick={this.handleAddQueryToDashboard(eventView)}
|
|
|
>
|
|
|
- {t('Add to Dashboard')}
|
|
|
- </MenuItem>
|
|
|
+ {t('Add to Dashboard')} <FeatureBadge type="beta" noTooltip />
|
|
|
+ </StyledMenuItem>
|
|
|
</ContextMenu>
|
|
|
)
|
|
|
);
|
|
@@ -279,12 +280,12 @@ class QueryList extends React.Component<Props> {
|
|
|
>
|
|
|
{({hasFeature}) =>
|
|
|
hasFeature && (
|
|
|
- <MenuItem
|
|
|
+ <StyledMenuItem
|
|
|
data-test-id="add-query-to-dashboard"
|
|
|
onClick={this.handleAddQueryToDashboard(eventView, savedQuery)}
|
|
|
>
|
|
|
- {t('Add to Dashboard')}
|
|
|
- </MenuItem>
|
|
|
+ {t('Add to Dashboard')} <FeatureBadge type="beta" noTooltip />
|
|
|
+ </StyledMenuItem>
|
|
|
)
|
|
|
}
|
|
|
</Feature>
|
|
@@ -403,4 +404,11 @@ const StyledEmptyStateWarning = styled(EmptyStateWarning)`
|
|
|
grid-column: 1 / 4;
|
|
|
`;
|
|
|
|
|
|
+const StyledMenuItem = styled(MenuItem)`
|
|
|
+ white-space: nowrap;
|
|
|
+ span {
|
|
|
+ align-items: baseline;
|
|
|
+ }
|
|
|
+`;
|
|
|
+
|
|
|
export default withApi(QueryList);
|