You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
pass label through props
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user