Mercurial > gemma
comparison client/src/components/usermanagement/Userdetail.vue @ 1669:16fb9667ddf8
refac: use dynamic imports for components
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 24 Dec 2018 13:12:11 +0100 |
parents | f2d24dceecc7 |
children | a08e0f532304 |
comparison
equal
deleted
inserted
replaced
1668:eb832d81b67a | 1669:16fb9667ddf8 |
---|---|
189 * Thomas Junk <thomas.junk@intevation.de> | 189 * Thomas Junk <thomas.junk@intevation.de> |
190 */ | 190 */ |
191 import { HTTP } from "@/lib/http"; | 191 import { HTTP } from "@/lib/http"; |
192 import { displayError } from "@/lib/errors.js"; | 192 import { displayError } from "@/lib/errors.js"; |
193 import { mapState } from "vuex"; | 193 import { mapState } from "vuex"; |
194 import PasswordField from "./Passwordfield"; | |
195 | 194 |
196 const emptyErrormessages = () => { | 195 const emptyErrormessages = () => { |
197 return { | 196 return { |
198 email: "", | 197 email: "", |
199 country: "", | 198 country: "", |
226 }; | 225 }; |
227 | 226 |
228 export default { | 227 export default { |
229 name: "userdetail", | 228 name: "userdetail", |
230 components: { | 229 components: { |
231 PasswordField | 230 PasswordField: () => import("./Passwordfield") |
232 }, | 231 }, |
233 data() { | 232 data() { |
234 return { | 233 return { |
235 mailsent: false, | 234 mailsent: false, |
236 passwordLabel: this.$gettext("Password"), | 235 passwordLabel: this.$gettext("Password"), |