Files
DiceCloud/app/imports/client/ui/pages/Tabletop.vue
2025-01-24 16:13:36 +02:00

71 lines
1.5 KiB
Vue

<template lang="html">
<v-fade-transition mode="out-in">
<v-container
v-if="!$subReady.tabletop"
key="Loading"
fluid
class="fill-height"
align="center"
justify="center"
>
<v-row justify="center">
<v-col cols="1">
<v-progress-circular
:size="100"
:width="10"
color="primary"
style="opacity: 0.5"
indeterminate
/>
</v-col>
</v-row>
</v-container>
<tabletop-component
v-else-if="tabletop"
key="Tabletop"
:model="tabletop"
/>
<v-container
v-else
key="Not Found"
fluid
class="fill-height"
align="center"
justify="center"
>
<v-row
class="pa-4"
>
<v-col
cols="12"
md="8"
>
<p>This tabletop was not found</p>
<p>Either it does not exist, or you do not have permission to view it</p>
</v-col>
</v-row>
</v-container>
</v-fade-transition>
</template>
<script lang="js">
import Tabletops from '/imports/api/tabletop/Tabletops';
import TabletopComponent from '/imports/client/ui/tabletop/TabletopComponent.vue';
export default {
components: {
TabletopComponent,
},
meteor: {
tabletop(){
return Tabletops.findOne(this.$route.params.id);
},
$subscribe: {
'tabletop'(){
return [this.$route.params.id];
},
}
}
}
</script>