mirror of https://github.com/bra1n/townsquare.git
clear Fabled when clearing players or roles
This commit is contained in:
parent
9c3632e2ae
commit
1f4a37ab5c
|
@ -1,5 +1,11 @@
|
||||||
# Release Notes
|
# Release Notes
|
||||||
|
|
||||||
|
## Version 2.2.1
|
||||||
|
- clearing players / roles now also clears Fabled (closes #85)
|
||||||
|
- fix list of locked votes showing unlocked votes sometimes
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Version 2.2.0
|
## Version 2.2.0
|
||||||
- added [V] hotkey to open nomination history (thanks @lilserf)
|
- added [V] hotkey to open nomination history (thanks @lilserf)
|
||||||
- updated roles according to official Wiki changes
|
- updated roles according to official Wiki changes
|
||||||
|
|
|
@ -84,6 +84,7 @@ const actions = {
|
||||||
name,
|
name,
|
||||||
id
|
id
|
||||||
}));
|
}));
|
||||||
|
commit("setFabled", { fabled: [] });
|
||||||
}
|
}
|
||||||
commit("set", players);
|
commit("set", players);
|
||||||
commit("setBluff");
|
commit("setBluff");
|
||||||
|
@ -94,6 +95,7 @@ const mutations = {
|
||||||
clear(state) {
|
clear(state) {
|
||||||
state.players = [];
|
state.players = [];
|
||||||
state.bluffs = [];
|
state.bluffs = [];
|
||||||
|
state.fabled = [];
|
||||||
},
|
},
|
||||||
set(state, players = []) {
|
set(state, players = []) {
|
||||||
state.players = players;
|
state.players = players;
|
||||||
|
|
Loading…
Reference in New Issue