Dashboard: Remove global add button (#103457)
* Dashboard: Remove global add button * Push
This commit is contained in:
@@ -8,7 +8,6 @@ import { isLibraryPanel } from '../../utils/utils';
|
||||
import { DashboardScene } from '../DashboardScene';
|
||||
|
||||
import { BackToDashboardButton } from './actions/BackToDashboardButton';
|
||||
import { DashboardAddButton } from './actions/DashboardAddButton';
|
||||
import { DashboardSettingsButton } from './actions/DashboardSettingsButton';
|
||||
import { DiscardLibraryPanelButton } from './actions/DiscardLibraryPanelButton';
|
||||
import { DiscardPanelButton } from './actions/DiscardPanelButton';
|
||||
@@ -99,12 +98,6 @@ export const RightActions = ({ dashboard }: { dashboard: DashboardScene }) => {
|
||||
group: 'panel',
|
||||
condition: showPanelButtons && isEditingLibraryPanel,
|
||||
},
|
||||
{
|
||||
key: 'dashboard-add-button',
|
||||
component: DashboardAddButton,
|
||||
group: 'dashboard',
|
||||
condition: isEditingAndShowingDashboard && dashboard.canEditDashboard(),
|
||||
},
|
||||
{
|
||||
key: 'edit-schema-v2-button',
|
||||
component: EditSchemaV2Button,
|
||||
|
||||
Reference in New Issue
Block a user