mirror of
https://github.com/romancm/gamebrary
synced 2025-02-16 11:08:24 +00:00
Moved add game class to computed prop
This commit is contained in:
parent
d5529de1f4
commit
f52c9bfa56
1 changed files with 11 additions and 4 deletions
|
@ -1,9 +1,6 @@
|
|||
<template lang="html">
|
||||
<modal large :title="$t('list.addGame')">
|
||||
<button
|
||||
:class="['add-game-button small', { info: this.darkModeEnabled, accent: !this.darkModeEnabled, }]"
|
||||
:title="$t('list.addGame')"
|
||||
>
|
||||
<button :class="buttonClass" :title="$t('list.addGame')">
|
||||
<i class="fas fa-plus" />
|
||||
</button>
|
||||
|
||||
|
@ -84,6 +81,16 @@ export default {
|
|||
...mapState(['results', 'gameLists', 'platform']),
|
||||
...mapGetters(['darkModeEnabled']),
|
||||
|
||||
buttonClass() {
|
||||
return [
|
||||
'add-game-button small',
|
||||
{
|
||||
info: this.darkModeEnabled,
|
||||
accent: !this.darkModeEnabled,
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
noResults() {
|
||||
return this.filteredResults.length === 0
|
||||
&& !this.loading
|
||||
|
|
Loading…
Add table
Reference in a new issue