pass label through props

pull/21833/head
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>