Mercurial > gemma
diff client/src/store/usermanagement.js @ 3506:e2ed741545e1
import_overview: added country column
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 28 May 2019 13:47:18 +0200 |
parents | a6eea3002e6e |
children | 081182dfcc35 |
line wrap: on
line diff
--- a/client/src/store/usermanagement.js Tue May 28 12:44:13 2019 +0200 +++ b/client/src/store/usermanagement.js Tue May 28 13:47:18 2019 +0200 @@ -41,6 +41,12 @@ namespaced: true, state: init(), getters: { + userCountries: state => { + return state.users.reduce((o, n) => { + o[n.user] = n.country !== "--" ? n.country : "global"; + return o; + }, {}); + }, isUserDetailsVisible: state => { return state.userDetailsVisible; },