pass label through props
This commit is contained in:
parent
92d7263046
commit
df8488e194
2 changed files with 2 additions and 1 deletions
|
@ -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>);
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue