Mercurial > gemma
comparison client/src/usermanagement/Userdetail.vue @ 1123:d9e6a1f6f394 store-refactoring
moved all collapse flags for UI elements to store
UI elements can now be expanded/collapsed via the application store
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 06 Nov 2018 13:00:17 +0100 |
parents | ca628dce90dd |
children | 2fda33d55d81 |
comparison
equal
deleted
inserted
replaced
1122:a4c74a95c177 | 1123:d9e6a1f6f394 |
---|---|
105 * Author(s): | 105 * Author(s): |
106 * Thomas Junk <thomas.junk@intevation.de> | 106 * Thomas Junk <thomas.junk@intevation.de> |
107 */ | 107 */ |
108 import { HTTP } from "../application/lib/http"; | 108 import { HTTP } from "../application/lib/http"; |
109 import { displayError } from "../application/lib/errors.js"; | 109 import { displayError } from "../application/lib/errors.js"; |
110 import { mapGetters } from "vuex"; | 110 import { mapState } from "vuex"; |
111 import PasswordField from "./Passwordfield"; | 111 import PasswordField from "./Passwordfield"; |
112 | 112 |
113 const emptyErrormessages = () => { | 113 const emptyErrormessages = () => { |
114 return { | 114 return { |
115 email: "", | 115 email: "", |
187 }, | 187 }, |
188 userNamePlaceholder() { | 188 userNamePlaceholder() { |
189 if (this.currentUser.isNew) return "N.N"; | 189 if (this.currentUser.isNew) return "N.N"; |
190 return ""; | 190 return ""; |
191 }, | 191 }, |
192 ...mapGetters("application", ["countries"]), | 192 ...mapState("application", ["countries"]), |
193 user() { | 193 user() { |
194 return this.$store.getters["usermanagement/currentUser"]; | 194 return this.$store.getters["usermanagement/currentUser"]; |
195 }, | 195 }, |
196 isFormValid() { | 196 isFormValid() { |
197 return ( | 197 return ( |