summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-23 17:19:52 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-23 17:19:52 +0900
commit9595f43d014a0170552de25e4efc744b52c6704c (patch)
tree2f74fe4e8f60aa438d1a640ce1deca847e94f1d7 /src/web
parent[Client] Fix bug (diff)
downloadmisskey-9595f43d014a0170552de25e4efc744b52c6704c.tar.gz
misskey-9595f43d014a0170552de25e4efc744b52c6704c.tar.bz2
misskey-9595f43d014a0170552de25e4efc744b52c6704c.zip
Fix bug
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/desktop/tags/settings.tag12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/web/app/desktop/tags/settings.tag b/src/web/app/desktop/tags/settings.tag
index 544e41c256..56a00bc9ad 100644
--- a/src/web/app/desktop/tags/settings.tag
+++ b/src/web/app/desktop/tags/settings.tag
@@ -23,15 +23,15 @@
</label>
<label>
<p>場所</p>
- <input ref="accountLocation" type="text" value={ I.location }/>
+ <input ref="accountLocation" type="text" value={ I.profile.location }/>
</label>
<label>
<p>自己紹介</p>
- <textarea ref="accountBio">{ I.bio }</textarea>
+ <textarea ref="accountDescription">{ I.description }</textarea>
</label>
<label>
<p>誕生日</p>
- <input ref="accountBirthday" type="date" value={ I.birthday }/>
+ <input ref="accountBirthday" type="date" value={ I.profile.birthday }/>
</label>
<button class="style-primary" onclick={ updateAccount }>保存</button>
</section>
@@ -212,9 +212,9 @@
this.updateAccount = () => {
this.api('i/update', {
name: this.refs.accountName.value,
- location: this.refs.accountLocation.value,
- bio: this.refs.accountBio.value,
- birthday: this.refs.accountBirthday.value
+ location: this.refs.accountLocation.value || undefined,
+ description: this.refs.accountDescription.value || undefined,
+ birthday: this.refs.accountBirthday.value || undefined
}).then(() => {
this.notify('プロフィールを更新しました');
});