Skip to content

Commit

Permalink
Unify naming for QueryEditModal description (#7999)
Browse files Browse the repository at this point in the history
  • Loading branch information
linuspahl authored Apr 29, 2020
1 parent 8f90d2d commit 7489ce0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ class QueryTitleEditModal extends React.Component<Props, State> {
onTitleChange: PropTypes.func.isRequired,
};

state = {
titleDraft: '',
};
constructor(props: Props) {
super(props);
this.state = {
titleDraft: '',
};
}

open = (activeQueryTitle: string) => {
this.setState({
Expand All @@ -54,12 +57,12 @@ class QueryTitleEditModal extends React.Component<Props, State> {
const { titleDraft } = this.state;
return (
<BootstrapModalForm ref={(modal) => { this.modal = modal; }}
title="Editing query title"
title="Editing dashboard page title"
onSubmitForm={this._onDraftSave}
submitButtonText="Save"
bsSize="large">
<Input autoFocus
help="The title of the query tab. It has a maximum length of 40 characters."
help="Enter a helpful dashboard page title. It has a maximum length of 40 characters."
id="title"
label="Title"
name="title"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import QueryTitleEditModal from './QueryTitleEditModal';

describe('QueryTitleEditModal', () => {
afterEach(cleanup);
const modalHeadline = 'Editing query title';
const modalHeadline = 'Editing dashboard page title';
const openModal = (modalRef, currentTitle = 'CurrentTitle') => {
if (modalRef) {
modalRef.open(currentTitle);
Expand Down

0 comments on commit 7489ce0

Please sign in to comment.