pass label through props

This commit is contained in:
Bruno Windels 2019-08-06 17:03:16 +02:00
parent 92d7263046
commit df8488e194
2 changed files with 2 additions and 1 deletions

View file

@ -225,7 +225,7 @@ export default class BasicMessageEditor extends React.Component {
tabIndex="1"
onKeyDown={this._onKeyDown}
ref={ref => this._editorRef = ref}
aria-label={_t("Edit message")}
aria-label={this.props.label}
></div>
</div>);
}

View file

@ -255,6 +255,7 @@ export default class EditMessageComposer extends React.Component {
model={this.model}
room={this._getRoom()}
initialCaret={this.props.editState.getCaret()}
label={_t("Edit message")}
/>
<div className="mx_EditMessageComposer_buttons">
<AccessibleButton kind="secondary" onClick={this._cancelEdit}>{_t("Cancel")}</AccessibleButton>