summaryrefslogtreecommitdiff
path: root/src/web/app
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-23 04:07:22 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-23 04:07:22 +0900
commit4cbbaf3f77cd6c87d822c0cbcaad58e4a42490ac (patch)
tree29269012e894c01de11335fb526bfd8eb2c38fe9 /src/web/app
parent:v: (diff)
downloadsharkey-4cbbaf3f77cd6c87d822c0cbcaad58e4a42490ac.tar.gz
sharkey-4cbbaf3f77cd6c87d822c0cbcaad58e4a42490ac.tar.bz2
sharkey-4cbbaf3f77cd6c87d822c0cbcaad58e4a42490ac.zip
:v:
Diffstat (limited to 'src/web/app')
-rw-r--r--src/web/app/desktop/views/components/posts.post.vue13
-rw-r--r--src/web/app/mobile/views/components/posts.post.vue13
-rw-r--r--src/web/app/mobile/views/components/ui.vue1
3 files changed, 19 insertions, 8 deletions
diff --git a/src/web/app/desktop/views/components/posts.post.vue b/src/web/app/desktop/views/components/posts.post.vue
index 6fe097909b..a05a498110 100644
--- a/src/web/app/desktop/views/components/posts.post.vue
+++ b/src/web/app/desktop/views/components/posts.post.vue
@@ -142,8 +142,10 @@ export default Vue.extend({
}
},
created() {
- this.connection = (this as any).os.stream.getConnection();
- this.connectionId = (this as any).os.stream.use();
+ if ((this as any).os.isSignedIn) {
+ this.connection = (this as any).os.stream.getConnection();
+ this.connectionId = (this as any).os.stream.use();
+ }
},
mounted() {
this.capture(true);
@@ -154,8 +156,11 @@ export default Vue.extend({
},
beforeDestroy() {
this.decapture(true);
- this.connection.off('_connected_', this.onStreamConnected);
- (this as any).os.stream.dispose(this.connectionId);
+
+ if ((this as any).os.isSignedIn) {
+ this.connection.off('_connected_', this.onStreamConnected);
+ (this as any).os.stream.dispose(this.connectionId);
+ }
},
methods: {
capture(withHandler = false) {
diff --git a/src/web/app/mobile/views/components/posts.post.vue b/src/web/app/mobile/views/components/posts.post.vue
index 43d8d4a89b..43041a61b5 100644
--- a/src/web/app/mobile/views/components/posts.post.vue
+++ b/src/web/app/mobile/views/components/posts.post.vue
@@ -115,8 +115,10 @@ export default Vue.extend({
}
},
created() {
- this.connection = (this as any).os.stream.getConnection();
- this.connectionId = (this as any).os.stream.use();
+ if ((this as any).os.isSignedIn) {
+ this.connection = (this as any).os.stream.getConnection();
+ this.connectionId = (this as any).os.stream.use();
+ }
},
mounted() {
this.capture(true);
@@ -127,8 +129,11 @@ export default Vue.extend({
},
beforeDestroy() {
this.decapture(true);
- this.connection.off('_connected_', this.onStreamConnected);
- (this as any).os.stream.dispose(this.connectionId);
+
+ if ((this as any).os.isSignedIn) {
+ this.connection.off('_connected_', this.onStreamConnected);
+ (this as any).os.stream.dispose(this.connectionId);
+ }
},
methods: {
capture(withHandler = false) {
diff --git a/src/web/app/mobile/views/components/ui.vue b/src/web/app/mobile/views/components/ui.vue
index fbe80e8c2b..91d7ea29b6 100644
--- a/src/web/app/mobile/views/components/ui.vue
+++ b/src/web/app/mobile/views/components/ui.vue
@@ -65,6 +65,7 @@ export default Vue.extend({
.mk-ui
display flex
flex 1
+ flex-direction column
padding-top 48px
> .content