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

Commit

Permalink
Fix: should not show active while loading
Browse files Browse the repository at this point in the history
While loading data, puzzle elements should not be active
  • Loading branch information
jhihruei committed Mar 23, 2019
1 parent c571a35 commit 61effbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 61effbb

Please sign in to comment.