mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* changed dashboard save as to have save as new switch on by default
This commit is contained in:
parent
ee2e483382
commit
8537f25996
3 changed files with 5 additions and 2 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
exports[`renders DashboardSaveModal 1`] = `
|
||||
<SavedObjectSaveModal
|
||||
initialCopyOnSave={true}
|
||||
objectType="dashboard"
|
||||
onClose={[Function]}
|
||||
onSave={[Function]}
|
||||
|
|
|
@ -147,6 +147,7 @@ export class DashboardSaveModal extends React.Component<Props, State> {
|
|||
onClose={this.props.onClose}
|
||||
title={this.props.title}
|
||||
showCopyOnSave={this.props.showCopyOnSave}
|
||||
initialCopyOnSave={this.props.showCopyOnSave}
|
||||
objectType="dashboard"
|
||||
options={this.renderDashboardSaveOptions()}
|
||||
showDescription={false}
|
||||
|
|
|
@ -425,8 +425,9 @@ export function DashboardPageProvider({ getService, getPageObjects }: FtrProvide
|
|||
await this.setStoreTimeWithDashboard(saveOptions.storeTimeWithDashboard);
|
||||
}
|
||||
|
||||
if (saveOptions.saveAsNew !== undefined) {
|
||||
await this.setSaveAsNewCheckBox(saveOptions.saveAsNew);
|
||||
const saveAsNewCheckboxExists = await testSubjects.exists('saveAsNewCheckbox');
|
||||
if (saveAsNewCheckboxExists) {
|
||||
await this.setSaveAsNewCheckBox(Boolean(saveOptions.saveAsNew));
|
||||
}
|
||||
|
||||
if (saveOptions.tags) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue