Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Fix: should not show active while loading #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/generateBingo.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function generateBingo (sponsors, communities, token) {
}

// free space in the middle
grid[12] = { 'type': 'free_space' }
grid[12] = { 'type': 'free_space', 'element': { 'active': true, 'logourl': '', 'name': { en: '' } } }

// fill the remaining with sponsors
for (var i = 0; i < 25; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/views/PuzzleList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<td
v-for="j in range"
:key="'d'+j"
:class="{ active: (table[i * 5 + j].element) ? table[i * 5 + j].element.active : true }"
:class="{ active: (table[i * 5 + j].element) ? table[i * 5 + j].element.active : false }"
:style="{ backgroundImage: `url(${(table[i * 5 + j].element) ? table[i * 5 + j].element.logourl : ''})` }"
:data-text="(table[i * 5 + j].element && table[i * 5 + j].element.logourl === '') ? table[i * 5 + j].element.name.en : ''"
>
Expand Down