From 1f4a37ab5cecbfac372b4a2f344555942b25171b Mon Sep 17 00:00:00 2001 From: Steffen Date: Wed, 6 Jan 2021 21:58:08 +0100 Subject: [PATCH] clear Fabled when clearing players or roles --- CHANGELOG.md | 6 ++++++ src/store/modules/players.js | 2 ++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b9dd69..f54c923 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/store/modules/players.js b/src/store/modules/players.js index d1be026..ffec7c3 100644 --- a/src/store/modules/players.js +++ b/src/store/modules/players.js @@ -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;