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
|
||||
|
||||
## 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
|
||||
- added [V] hotkey to open nomination history (thanks @lilserf)
|
||||
- updated roles according to official Wiki changes
|
||||
|
|
|
@ -84,6 +84,7 @@ const actions = {
|
|||
name,
|
||||
id
|
||||
}));
|
||||
commit("setFabled", { fabled: [] });
|
||||
}
|
||||
commit("set", players);
|
||||
commit("setBluff");
|
||||
|
@ -94,6 +95,7 @@ const mutations = {
|
|||
clear(state) {
|
||||
state.players = [];
|
||||
state.bluffs = [];
|
||||
state.fabled = [];
|
||||
},
|
||||
set(state, players = []) {
|
||||
state.players = players;
|
||||
|
|
Loading…
Reference in New Issue