dashboard updates

This commit is contained in:
Alexey 2020-04-30 13:38:45 +03:00
parent d692796854
commit ca955ae814
1 changed files with 8 additions and 6 deletions

View File

@ -105,7 +105,7 @@
</div> </div>
</div> </div>
<b-dropdown-item <b-dropdown-item
v-for="(rows, index) in [10, 25, 50, 100]" v-for="(rows, index) in [10, 25, 50, 100, 1000]"
:key="index" :key="index"
:value="rows" :value="rows"
aria-role="listitem" aria-role="listitem"
@ -135,17 +135,19 @@ export default {
// contribution: '#' // contribution: '#'
// } // }
// ], // ],
rowsPerPage: 10, rowsPerPage: 100,
contributionSearch: '', contributionSearch: '',
downloadUrl: process.env.downloadUrl downloadUrl: process.env.downloadUrl
} }
}, },
computed: { computed: {
filteredContributions() { filteredContributions() {
return this.contributions.filter((contribution) => { return this.contributions
const name = contribution.name || 'anonymous' .filter((contribution) => {
return name.toLowerCase().includes(this.contributionSearch.toLowerCase()) const name = contribution.name || 'anonymous'
}) return name.toLowerCase().includes(this.contributionSearch.toLowerCase())
})
.reverse()
} }
}, },
async mounted() { async mounted() {