Add support for changing account password

This commit is contained in:
Dane Everitt 2019-06-22 23:45:09 -07:00
parent d43b7ea5bc
commit 438f1b06b9
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
7 changed files with 38 additions and 13 deletions

View file

@ -6,8 +6,8 @@ const flashes: FlashState = {
addFlash: action((state, payload) => {
state.items.push(payload);
}),
clearFlashes: action(state => {
state.items = [];
clearFlashes: action((state, payload) => {
state.items = payload ? state.items.filter(flashes => flashes.key !== payload) : [];
}),
};