Backend korrigiert, icons korrigiert, menü-aufklappen verbessert

This commit is contained in:
Torsten Schulz
2024-08-21 21:58:00 +02:00
parent 16a59daf39
commit dfdb1660ff
12 changed files with 29 additions and 16 deletions

View File

@@ -20,7 +20,8 @@ const menuStructure = {
icon: "friends24.png"
}
},
showLoggedinFriends: 1
showLoggedinFriends: 1,
icon: "friends24.png"
},
socialnetwork: {
visible: ["all"],
@@ -73,7 +74,7 @@ const menuStructure = {
},
falukant: {
visible: ["all"],
icon: "falukant24.png",
icon: "falukant16.png",
children: {
create: {
visible: ["nofalukantaccount"],
@@ -135,11 +136,11 @@ const menuStructure = {
},
minigames: {
visible: ["all"],
icon: "minigames24.png",
icon: "minigames16.png",
},
settings: {
visible: ["all"],
icon: "settings24.png",
icon: "settings16.png",
children: {
homepage: {
visible: ["all"],

View File

@@ -16,7 +16,6 @@ export default function setupAssociations() {
UserParamType.hasMany(UserParam, { foreignKey: 'paramTypeId', as: 'user_params' });
UserParam.belongsTo(UserParamType, { foreignKey: 'paramTypeId', as: 'paramType' });
UserParam.belongsTo(SettingsType, { foreignKey: 'settingsId', as: 'settings' });
UserParam.belongsTo(User, { foreignKey: 'userId', as: 'user' });
UserRight.belongsTo(User, { foreignKey: 'userId' });

View File

@@ -63,3 +63,4 @@ const ContactMessage = sequelize.define('contact_message', {
});
export default ContactMessage;

View File

@@ -25,9 +25,8 @@ const initializeDatabase = async () => {
};
const syncModels = async (models) => {
// Nur einmaliges sync ohne alter/force
for (const model of Object.values(models)) {
await model.sync();
await model.sync({ alter: true });
}
};