Remove export overlay from dashboards index

pull/12528/head
Deniz Kusefoglu 2019-03-11 17:17:03 -07:00
parent bdd7a6616b
commit 2f79ad728f
1 changed files with 0 additions and 23 deletions

View File

@ -9,7 +9,6 @@ import DashboardsIndexContents from 'src/dashboards/components/dashboard_index/D
import {Page} from 'src/pageLayout' import {Page} from 'src/pageLayout'
import SearchWidget from 'src/shared/components/search_widget/SearchWidget' import SearchWidget from 'src/shared/components/search_widget/SearchWidget'
import AddResourceDropdown from 'src/shared/components/AddResourceDropdown' import AddResourceDropdown from 'src/shared/components/AddResourceDropdown'
import ExportOverlay from 'src/shared/components/ExportOverlay'
import ImportDashboardOverlay from 'src/dashboards/components/ImportDashboardOverlay' import ImportDashboardOverlay from 'src/dashboards/components/ImportDashboardOverlay'
// APIs // APIs
@ -67,8 +66,6 @@ type Props = DispatchProps & StateProps & OwnProps
interface State { interface State {
searchTerm: string searchTerm: string
isImportingDashboard: boolean isImportingDashboard: boolean
isExportingDashboard: boolean
exportDashboard: Dashboard
} }
@ErrorHandling @ErrorHandling
@ -79,8 +76,6 @@ class DashboardIndex extends PureComponent<Props, State> {
this.state = { this.state = {
searchTerm: '', searchTerm: '',
isImportingDashboard: false, isImportingDashboard: false,
isExportingDashboard: false,
exportDashboard: null,
} }
} }
@ -137,7 +132,6 @@ class DashboardIndex extends PureComponent<Props, State> {
</Page.Contents> </Page.Contents>
</Page> </Page>
{this.importOverlay} {this.importOverlay}
{this.exportOverlay}
</> </>
) )
} }
@ -202,10 +196,6 @@ class DashboardIndex extends PureComponent<Props, State> {
this.setState({isImportingDashboard: !this.state.isImportingDashboard}) this.setState({isImportingDashboard: !this.state.isImportingDashboard})
} }
private handleToggleExportOverlay = (): void => {
this.setState({isExportingDashboard: !this.state.isExportingDashboard})
}
private get importOverlay(): JSX.Element { private get importOverlay(): JSX.Element {
const {isImportingDashboard} = this.state const {isImportingDashboard} = this.state
const {orgs} = this.props const {orgs} = this.props
@ -218,19 +208,6 @@ class DashboardIndex extends PureComponent<Props, State> {
/> />
) )
} }
private get exportOverlay(): JSX.Element {
const {isExportingDashboard, exportDashboard} = this.state
return (
<ExportOverlay
resource={exportDashboard}
isVisible={isExportingDashboard}
resourceName="Dashboard"
onDismissOverlay={this.handleToggleExportOverlay}
/>
)
}
} }
const mstp = (state: AppState): StateProps => { const mstp = (state: AppState): StateProps => {