Skip to content

Commit

Permalink
[Time to Visualize] Dashboard Save As New by Default (#91761)
Browse files Browse the repository at this point in the history
* changed dashboard save as to have save as new switch on by default
  • Loading branch information
ThomThomson authored Feb 18, 2021
1 parent 96bc9e8 commit 0a685db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
5 changes: 3 additions & 2 deletions test/functional/page_objects/dashboard_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0a685db

Please sign in to comment.