mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-15 10:53:08 +02:00
29 lines
732 B
Vue
29 lines
732 B
Vue
<template>
|
|
<mk-ui>
|
|
<span slot="header"><span style="margin-right:4px;"><fa icon="gamepad"/></span>%i18n:@reversi%</span>
|
|
<x-reversi :game-id="$route.params.game" @nav="nav" :self-nav="false"/>
|
|
</mk-ui>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import Vue from 'vue';
|
|
|
|
export default Vue.extend({
|
|
components: {
|
|
XReversi: () => import('../../../../common/views/components/games/reversi/reversi.vue')
|
|
},
|
|
mounted() {
|
|
document.title = `${(this as any).os.instanceName} %i18n:@reversi%`;
|
|
},
|
|
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>
|