mizzkey/src/client/app/mobile/views/pages/games/reversi.vue

28 lines
617 B
Vue
Raw Normal View History

2018-08-03 15:34:58 +02:00
<template>
<mk-ui>
<span slot="header">%fa:gamepad%%i18n:@reversi%</span>
2018-08-05 06:40:26 +02:00
<mk-reversi :game-id="$route.params.game" @nav="nav" :self-nav="false"/>
2018-08-03 15:34:58 +02:00
</mk-ui>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
mounted() {
document.title = '%i18n:common.name% %i18n:@reversi%';
document.documentElement.style.background = '#fff';
},
methods: {
2018-08-05 06:40:26 +02:00
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);
}
2018-08-03 15:34:58 +02:00
}
}
});
</script>