[v10.0.x] PublicDashboards: Revoke public URL from audit table fix (#69229)

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

(cherry picked from commit 38fa41f51f)

Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com>
This commit is contained in:
Grot (@grafanabot)
2023-05-29 15:48:16 -03:00
committed by GitHub
co-authored by Juan Cabanas
parent a81452b437
commit 2a321a5c0d
2 changed files with 2 additions and 6 deletions
@@ -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 }));
};
@@ -97,7 +97,7 @@ const ConfigPublicDashboard = () => {
showModal(ShareModal, {
dashboard,
onDismiss: hideModal,
activeTab: 'share',
activeTab: 'public-dashboard',
});
};