diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-10 01:48:16 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-10 01:48:16 +0900 |
| commit | f5fec3d008f6414d43606205457e5477b4abb6cd (patch) | |
| tree | cc33cbfaadb64f42464550c8a540c8de282a1bbe /src/web/app/common | |
| parent | v4061 (diff) | |
| download | sharkey-f5fec3d008f6414d43606205457e5477b4abb6cd.tar.gz sharkey-f5fec3d008f6414d43606205457e5477b4abb6cd.tar.bz2 sharkey-f5fec3d008f6414d43606205457e5477b4abb6cd.zip | |
:v:
Diffstat (limited to 'src/web/app/common')
| -rw-r--r-- | src/web/app/common/views/components/othello.vue | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/web/app/common/views/components/othello.vue b/src/web/app/common/views/components/othello.vue index d4157eb761..70bb6b2ef5 100644 --- a/src/web/app/common/views/components/othello.vue +++ b/src/web/app/common/views/components/othello.vue @@ -67,6 +67,7 @@ export default Vue.extend({ components: { XGameroom }, + props: ['initGame'], data() { return { game: null, @@ -80,6 +81,16 @@ export default Vue.extend({ connectionId: null }; }, + watch: { + game(g) { + this.$emit('gamed', g); + } + }, + created() { + if (this.initGame) { + this.game = this.initGame; + } + }, mounted() { this.connection = (this as any).os.streams.othelloStream.getConnection(); this.connectionId = (this as any).os.streams.othelloStream.use(); @@ -162,6 +173,7 @@ export default Vue.extend({ .mk-othello color #677f84 + background #fff > .matching > h1 |