this.removeError(i)} {...this.state.errors[i]}/>)
+ }
+
+ return <>
+
+
+ {errors}
+
+
+
this.toggleCollapse("generalOpened")}>
+
+
+ General Settings
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
this.toggleCollapse("mailOpened")}>
+
+
+ Mail Settings
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
this.toggleCollapse("etcOpened")}>
+
+
+ Uncategorised
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ }
+
+ onChangeValue(event) {
+ const target = event.target;
+ const name = target.name;
+ const type = target.type;
+ let value = target.value;
+
+ if (type === "checkbox") {
+ value = event.target.checked ? "1" : "0";
+ }
+
+ this.setState({ ...this.state, user: { ...this.state.user, settings: { ...this.state.settings, [name]: value} } });
+ }
+}
\ No newline at end of file
diff --git a/src/src/views/users.js b/src/src/views/users.js
index 2279a24..7d98df2 100644
--- a/src/src/views/users.js
+++ b/src/src/views/users.js
@@ -180,9 +180,9 @@ export default class UserOverview extends React.Component {
{groups} |
- {getPeriodString(user.registered_at)}
+ {getPeriodString(user["registered_at"])}
|
@@ -288,7 +288,7 @@ export default class UserOverview extends React.Component {
groupRows.push(
|
{group.name} |
- {group.memberCount} |
+ {group["memberCount"]} |
{group.color}
diff --git a/src/webpack.config.js b/src/webpack.config.js
index f7b14f6..86c4412 100644
--- a/src/webpack.config.js
+++ b/src/webpack.config.js
@@ -1,5 +1,4 @@
module.exports = {
- mode: 'development',
module: {
rules: [
{
|