From df8488e194cc83b1b366cb16943c16975ed69f8a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 6 Aug 2019 17:03:16 +0200 Subject: [PATCH] pass label through props --- src/components/views/rooms/BasicMessageComposer.js | 2 +- src/components/views/rooms/EditMessageComposer.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/BasicMessageComposer.js b/src/components/views/rooms/BasicMessageComposer.js index a5283cc15d..e498ff88ad 100644 --- a/src/components/views/rooms/BasicMessageComposer.js +++ b/src/components/views/rooms/BasicMessageComposer.js @@ -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} > ); } diff --git a/src/components/views/rooms/EditMessageComposer.js b/src/components/views/rooms/EditMessageComposer.js index 87e4a4a665..7330405b81 100644 --- a/src/components/views/rooms/EditMessageComposer.js +++ b/src/components/views/rooms/EditMessageComposer.js @@ -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")} />
{_t("Cancel")}