summaryrefslogtreecommitdiff
path: root/src/web/app
diff options
context:
space:
mode:
authorsyuilo⭐️ <Syuilotan@yahoo.co.jp>2017-02-21 21:48:00 +0900
committersyuilo⭐️ <Syuilotan@yahoo.co.jp>2017-02-21 21:48:00 +0900
commit030dbbc2ebc59f6f23804cf648e37112b6dd8aba (patch)
treeb53d1da8bf01d895888d47388676028072f544f7 /src/web/app
parentwip (diff)
downloadmisskey-030dbbc2ebc59f6f23804cf648e37112b6dd8aba.tar.gz
misskey-030dbbc2ebc59f6f23804cf648e37112b6dd8aba.tar.bz2
misskey-030dbbc2ebc59f6f23804cf648e37112b6dd8aba.zip
Update user-profile.tag
Diffstat (limited to 'src/web/app')
-rw-r--r--src/web/app/desktop/tags/user-profile.tag18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/web/app/desktop/tags/user-profile.tag b/src/web/app/desktop/tags/user-profile.tag
index 36c9f7f950..03697fd5f3 100644
--- a/src/web/app/desktop/tags/user-profile.tag
+++ b/src/web/app/desktop/tags/user-profile.tag
@@ -80,20 +80,22 @@
</style>
<script>
- this.age = require 's-age'
+ this.age = require('s-age');
this.mixin('i');
- this.user = this.opts.user
+ this.user = this.opts.user;
- this.show-following = () => {
- window = document.body.appendChild(document.createElement('mk-user-following-window'));
- riot.mount window, do
+ this.showFollowing = () => {
+ riot.mount(document.body.appendChild(document.createElement('mk-user-following-window')), {
user: this.user
+ });
+ };
- this.show-followers = () => {
- window = document.body.appendChild(document.createElement('mk-user-followers-window'));
- riot.mount window, do
+ this.showFollowers = () => {
+ riot.mount(document.body.appendChild(document.createElement('mk-user-followers-window')), {
user: this.user
+ });
+ };
</script>
</mk-user-profile>