clear Fabled when clearing players or roles

This commit is contained in:
Steffen 2021-01-06 21:58:08 +01:00
parent 9c3632e2ae
commit 1f4a37ab5c
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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;