add setting for account name and display name

This commit is contained in:
Tom
2023-05-26 17:25:49 +02:00
parent d2aedea0b7
commit af3dbb9dcf
6 changed files with 85 additions and 22 deletions
+5 -1
View File
@@ -639,7 +639,11 @@ const Board = () => {
<tr data-type="Name">
<td id="td-name">Name</td>
<td>
<input name="name" type="text" tabIndex={1} placeholder="Anonymous" ref={nameRef} />
{account.author.displayName ? (
<input name="name" type="text" tabIndex={1} value={account.author.displayName} ref={nameRef} disabled />
) : (
<input name="name" type="text" placeholder="Anonymous" tabIndex={1} ref={nameRef} />
)}
</td>
</tr>
<tr data-type="Subject">
+5 -1
View File
@@ -565,7 +565,11 @@ const Catalog = () => {
<tr data-type="Name">
<td id="td-name">Name</td>
<td>
<input name="name" type="text" tabIndex={1} placeholder="Anonymous" ref={nameRef} />
{account.author.displayName ? (
<input name="name" type="text" tabIndex={1} value={account.author.displayName} ref={nameRef} disabled />
) : (
<input name="name" type="text" placeholder="Anonymous" tabIndex={1} ref={nameRef} />
)}
</td>
</tr>
<tr data-type="Subject">
+5 -1
View File
@@ -614,7 +614,11 @@ const Thread = () => {
<tr data-type="Name">
<td id="td-name">Name</td>
<td>
<input name="name" type="text" tabIndex={1} placeholder="Anonymous" ref={nameRef} />
{account.author.displayName ? (
<input name="name" type="text" tabIndex={1} value={account.author.displayName} ref={nameRef} disabled />
) : (
<input name="name" type="text" placeholder="Anonymous" tabIndex={1} ref={nameRef} />
)}
<input id="post-button" type="submit" value="Post" tabIndex={6}
onClick={handleSubmit} />
</td>