diff --git a/graylog2-web-interface/src/views/components/queries/QueryTitleEditModal.jsx b/graylog2-web-interface/src/views/components/queries/QueryTitleEditModal.jsx index 36d5767977b9..29d17625f1ce 100644 --- a/graylog2-web-interface/src/views/components/queries/QueryTitleEditModal.jsx +++ b/graylog2-web-interface/src/views/components/queries/QueryTitleEditModal.jsx @@ -28,9 +28,12 @@ class QueryTitleEditModal extends React.Component { onTitleChange: PropTypes.func.isRequired, }; - state = { - titleDraft: '', - }; + constructor(props: Props) { + super(props); + this.state = { + titleDraft: '', + }; + } open = (activeQueryTitle: string) => { this.setState({ @@ -54,12 +57,12 @@ class QueryTitleEditModal extends React.Component { const { titleDraft } = this.state; return ( { this.modal = modal; }} - title="Editing query title" + title="Editing dashboard page title" onSubmitForm={this._onDraftSave} submitButtonText="Save" bsSize="large"> { afterEach(cleanup); - const modalHeadline = 'Editing query title'; + const modalHeadline = 'Editing dashboard page title'; const openModal = (modalRef, currentTitle = 'CurrentTitle') => { if (modalRef) { modalRef.open(currentTitle);