mirror of https://github.com/vector-im/riot-web
Merge pull request #5585 from ndarilek/label-base-avatar
Label unlabeled avatar button in event panelpull/21833/head
commit
b089f3d2f9
|
@ -26,6 +26,7 @@ import MatrixClientContext from "../../../contexts/MatrixClientContext";
|
||||||
import {useEventEmitter} from "../../../hooks/useEventEmitter";
|
import {useEventEmitter} from "../../../hooks/useEventEmitter";
|
||||||
import {toPx} from "../../../utils/units";
|
import {toPx} from "../../../utils/units";
|
||||||
import {ResizeMethod} from "../../../Avatar";
|
import {ResizeMethod} from "../../../Avatar";
|
||||||
|
import { _t } from '../../../languageHandler';
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
name: string; // The name (first initial used as default)
|
name: string; // The name (first initial used as default)
|
||||||
|
@ -140,6 +141,7 @@ const BaseAvatar = (props: IProps) => {
|
||||||
if (onClick) {
|
if (onClick) {
|
||||||
return (
|
return (
|
||||||
<AccessibleButton
|
<AccessibleButton
|
||||||
|
aria-label={_t("Avatar")}
|
||||||
{...otherProps}
|
{...otherProps}
|
||||||
element="span"
|
element="span"
|
||||||
className={classNames("mx_BaseAvatar", className)}
|
className={classNames("mx_BaseAvatar", className)}
|
||||||
|
|
|
@ -2437,6 +2437,7 @@
|
||||||
"Revoke permissions": "Revoke permissions",
|
"Revoke permissions": "Revoke permissions",
|
||||||
"Move left": "Move left",
|
"Move left": "Move left",
|
||||||
"Move right": "Move right",
|
"Move right": "Move right",
|
||||||
|
"Avatar": "Avatar",
|
||||||
"This room is public": "This room is public",
|
"This room is public": "This room is public",
|
||||||
"Away": "Away",
|
"Away": "Away",
|
||||||
"User Status": "User Status",
|
"User Status": "User Status",
|
||||||
|
|
Loading…
Reference in New Issue