minor fixes.

This commit is contained in:
m1k1o
2021-03-08 20:18:23 +01:00
parent d45d56a10c
commit ae9c09bf20
5 changed files with 12 additions and 7 deletions
+6 -1
View File
@@ -17,7 +17,12 @@
</v-app-bar>
<v-main>
<router-view />
<v-container
class="fill-height"
fluid
>
<router-view />
</v-container>
</v-main>
<v-footer app>
+1 -1
View File
@@ -9,7 +9,7 @@ const routes: Array<RouteConfig> = [
path: '/',
name: 'Home',
component: Home
}
},
]
const router = new VueRouter({
+2 -2
View File
@@ -5,7 +5,7 @@ import {
RoomEntry,
RoomSettings,
RoomsApi,
} from '@/api/index.ts'
} from '@/api/index'
import { state, State } from './state'
@@ -21,7 +21,7 @@ export default new Vuex.Store({
Vue.set(state, 'rooms', [...state.rooms, roomEntry])
},
ROOMS_PUT(state: State, roomEntry: RoomEntry) {
const roomEntries = state.rooms.filter((room) => {
const roomEntries = state.rooms.map((room) => {
if (room.id == roomEntry.id) {
return { ...room, ...roomEntry }
} else {
+1 -1
View File
@@ -1,6 +1,6 @@
import {
RoomEntry,
} from '@/api/index.ts'
} from '@/api/index'
export const state = {
rooms: [] as RoomEntry[],
+2 -2
View File
@@ -1,7 +1,7 @@
<template>
<div class="home">
<v-container>
<RoomsList />
</div>
</v-container>
</template>
<script lang="ts">