diff options
| author | ha-dai <contact@haradai.net> | 2017-10-26 15:05:20 +0900 |
|---|---|---|
| committer | ha-dai <contact@haradai.net> | 2017-10-26 15:05:20 +0900 |
| commit | 0b688a909ed84671a86d8d45f1ad679d0be2933d (patch) | |
| tree | a4fc2d25e86fc58c7345a91032f3fb960ecba6d7 /src/web/app/mobile | |
| parent | Merge branch 'master' of https://github.com/syuilo/misskey (diff) | |
| parent | [Client] Set description meta tag (diff) | |
| download | misskey-0b688a909ed84671a86d8d45f1ad679d0be2933d.tar.gz misskey-0b688a909ed84671a86d8d45f1ad679d0be2933d.tar.bz2 misskey-0b688a909ed84671a86d8d45f1ad679d0be2933d.zip | |
Merge branch 'master' of https://github.com/syuilo/misskey
Diffstat (limited to 'src/web/app/mobile')
| -rw-r--r-- | src/web/app/mobile/tags/page/settings.tag | 2 | ||||
| -rw-r--r-- | src/web/app/mobile/tags/timeline.tag | 30 | ||||
| -rw-r--r-- | src/web/app/mobile/tags/ui.tag | 2 |
3 files changed, 21 insertions, 13 deletions
diff --git a/src/web/app/mobile/tags/page/settings.tag b/src/web/app/mobile/tags/page/settings.tag index b366d3a16a..b6501142ee 100644 --- a/src/web/app/mobile/tags/page/settings.tag +++ b/src/web/app/mobile/tags/page/settings.tag @@ -29,7 +29,7 @@ <ul> <li><a onclick={ signout }><i class="fa fa-power-off"></i>%i18n:mobile.tags.mk-settings-page.signout%</a></li> </ul> - <p><small>ver { version }</small></p> + <p><small>ver { version } (葵 aoi)</small></p> <style> :scope display block diff --git a/src/web/app/mobile/tags/timeline.tag b/src/web/app/mobile/tags/timeline.tag index 5ecc2df9d1..c7f5bfd681 100644 --- a/src/web/app/mobile/tags/timeline.tag +++ b/src/web/app/mobile/tags/timeline.tag @@ -467,6 +467,7 @@ import getPostSummary from '../../../../common/get-post-summary.ts'; import openPostForm from '../scripts/open-post-form'; + this.mixin('i'); this.mixin('api'); this.mixin('stream'); @@ -502,24 +503,31 @@ }; this.capture = withHandler => { - this.stream.send({ - type: 'capture', - id: this.post.id - }); - if (withHandler) this.stream.on('post-updated', this.onStreamPostUpdated); + if (this.SIGNIN) { + this.stream.send({ + type: 'capture', + id: this.post.id + }); + if (withHandler) this.stream.on('post-updated', this.onStreamPostUpdated); + } }; this.decapture = withHandler => { - this.stream.send({ - type: 'decapture', - id: this.post.id - }); - if (withHandler) this.stream.off('post-updated', this.onStreamPostUpdated); + if (this.SIGNIN) { + this.stream.send({ + type: 'decapture', + id: this.post.id + }); + if (withHandler) this.stream.off('post-updated', this.onStreamPostUpdated); + } }; this.on('mount', () => { this.capture(true); - this.stream.on('_connected_', this.onStreamConnected); + + if (this.SIGNIN) { + this.stream.on('_connected_', this.onStreamConnected); + } if (this.p.text) { const tokens = this.p.ast; diff --git a/src/web/app/mobile/tags/ui.tag b/src/web/app/mobile/tags/ui.tag index b2f738dc2e..9d9cd4d74a 100644 --- a/src/web/app/mobile/tags/ui.tag +++ b/src/web/app/mobile/tags/ui.tag @@ -4,7 +4,7 @@ <div class="content"> <yield /> </div> - <mk-stream-indicator/> + <mk-stream-indicator if={ SIGNIN }/> <style> :scope display block |