1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-30 13:14:20 +00:00

ajout d'un range slider pour filter les monstres par ID

This commit is contained in:
Maxime Moraine 2020-05-10 10:43:34 +02:00
parent 3efc2aaaf5
commit eebf902641
6 changed files with 58 additions and 3 deletions

View file

@ -5,6 +5,7 @@ export default {
state: {
search: '',
challengeRange: [0, 30],
types: [
{ label: "Aberration", value: false },
{ label: "Bête", value: false },
@ -117,6 +118,12 @@ export default {
resetSearch: (state) => {
state.search = ''
},
setChallengeRange: (state, payload) => {
state.challengeRange = payload
},
resetChallengeRange: (state, payload) => {
state.challengeRange = [0, 30]
},
setTypes: (state, payload) => {
state.types = payload
},