1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-20 17:48:41 +09:00
MisskeyIO/src/client/app/desktop/views/pages/games/reversi.vue
2018-09-01 23:12:51 +09:00

28 lines
512 B
Vue

<template>
<component :is="ui ? 'mk-ui' : 'div'">
<mk-reversi :game-id="$route.params.game" @nav="nav" :self-nav="false"/>
</component>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
props: {
ui: {
default: false
}
},
methods: {
nav(game, actualNav) {
if (actualNav) {
this.$router.push(`/reversi/${game.id}`);
} else {
// TODO: https://github.com/vuejs/vue-router/issues/703
this.$router.push(`/reversi/${game.id}`);
}
}
}
});
</script>