PublicDashboards: Revoke public URL from audit table fix (#69032)

This commit is contained in:
Juan Cabanas
2023-05-29 13:08:27 -03:00
committed by GitHub
parent 9890ff7c92
commit 38fa41f51f
2 changed files with 2 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
import React from 'react';
import { locationService, reportInteraction } from '@grafana/runtime/src';
import { reportInteraction } from '@grafana/runtime/src';
import { Modal, ModalTabsHeader, TabContent } from '@grafana/ui';
import { config } from 'app/core/config';
import { contextSrv } from 'app/core/core';
@@ -95,10 +95,6 @@ export class ShareModal extends React.Component<Props, State> {
reportInteraction('grafana_dashboards_share_modal_viewed');
}
componentWillUnmount() {
locationService.partial({ shareView: null });
}
onSelectTab: React.ComponentProps<typeof ModalTabsHeader>['onChangeTab'] = (t) => {
this.setState((prevState) => ({ ...prevState, activeTab: t.value }));
};

View File

@@ -97,7 +97,7 @@ const ConfigPublicDashboard = () => {
showModal(ShareModal, {
dashboard,
onDismiss: hideModal,
activeTab: 'share',
activeTab: 'public-dashboard',
});
};