Skip to content

Commit 26cb5cb

Browse files
committed
show number of devices
1 parent 3a55af8 commit 26cb5cb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/views/dialogs/devtools/Users.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ const UserView: React.FC<UserProps> = ({ member, onBack }) => {
190190
<li>{verificationStatus}</li>
191191
</ul>
192192
<section>
193-
<h2>{_t("devtools|devices")}</h2>
193+
<h2>{_t("devtools|devices", { count: devices.size })}</h2>
194194
<ul>
195195
{Array.from(devices.values()).map((device) => (
196196
<li key={device.deviceId}>

src/i18n/strings/en_EN.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@
816816
"unverified": "Verification status: <E2EIcon /> Not signed by owner",
817817
"verified": "Verification status: <E2EIcon /> Verified by cross-signing"
818818
},
819-
"devices": "Devices",
819+
"devices": "Devices (%(count)s)",
820820
"edit_setting": "Edit setting",
821821
"edit_values": "Edit values",
822822
"empty_string": "<empty string>",

test/unit-tests/components/views/dialogs/devtools/__snapshots__/Users-test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ exports[`<Users /> should render a single user 1`] = `
336336
</ul>
337337
<section>
338338
<h2>
339-
Devices
339+
Devices (3)
340340
</h2>
341341
<ul>
342342
<li>

0 commit comments

Comments
 (0)