Skip to content

Commit 3189b29

Browse files
committed
fix: OU-1195 Create btn tool tip update to be more descriptive
1 parent 8ce2016 commit 3189b29

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

web/src/components/dashboards/perses/dashboard-create-dialog.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,16 @@ export const DashboardCreateDialog: React.FunctionComponent = () => {
164164
isDisabled={disabled}
165165
data-test={persesDashboardDataTestIDs.createDashboardButtonToolbar}
166166
>
167-
{permissionsLoading ? t('Loading...') : t('Create')}
167+
{permissionsLoading ? t('Checking permissions...') : t('Create')}
168168
</Button>
169169
);
170170

171171
return (
172172
<>
173173
{disabled ? (
174-
<Tooltip content={t("You don't have permissions to create dashboards")}>
174+
<Tooltip
175+
content={t('To create dashboards, contact your cluster administrator for permission.')}
176+
>
175177
<span style={{ cursor: 'not-allowed' }}> {createBtn}</span>
176178
</Tooltip>
177179
) : (

web/src/components/dashboards/perses/project/ProjectDropdown.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import fuzzysearch from 'fuzzysearch';
1818
import { useTranslation } from 'react-i18next';
1919
import ProjectMenuToggle from './ProjectMenuToggle';
2020
import { alphanumericCompare } from './utils';
21-
import { usePerses } from '../hooks/usePerses';
2221
import { useEditableProjects } from '../hooks/useEditableProjects';
2322
import { useCallback, useMemo, useRef, useState } from 'react';
2423

0 commit comments

Comments
 (0)