Flavionel 5 tahun lalu
induk
melakukan
38465520a4

+ 1 - 1
resources/js/components/partials/LobbyList.vue

@@ -1,7 +1,7 @@
 <template>
     <div>
         <template v-for="lobby in lobbies">
-            <v-card v-if="lobby.is_active" flat :key="lobby.id" :loading="loading">
+            <v-card v-if="lobby.isActive" flat :key="lobby.id" :loading="loading">
                 <div class="d-flex flex-row justify-content-between">
                     <div>
                         <v-card-title>{{lobby.name}}</v-card-title>

+ 2 - 2
resources/js/components/vuex/index.js

@@ -78,14 +78,14 @@ export default () => new Vuex.Store({
             let lobby = state.lobbies.filter((cur) => cur.uid == data.uid)
 
             if(lobby.length){
-                lobby.is_active = true
+                lobby.isActive = true
             }
         },
         setDeactivateLobby(state, data) {
             let lobby = state.lobbies.filter((cur) => cur.uid == data.uid)
 
             if(lobby.length){
-                lobby.is_active = false
+                lobby.isActive = false
             }
         },
         setSingleLobby(state, data) {