Add admin activity management
This commit is contained in:
+2
-2
@@ -37,13 +37,13 @@
|
||||
.then((settings) => {
|
||||
const allActivities = settings.activities || [];
|
||||
|
||||
const customAct = allActivities.find((a) => a.name === "Etwas eigenes" || a.name === "Sonstiges") || {
|
||||
const customAct = allActivities.find((a) => a.type === "custom") || {
|
||||
name: "Etwas eigenes",
|
||||
icon: "✏️",
|
||||
type: "custom",
|
||||
};
|
||||
|
||||
let otherActivities = allActivities.filter((a) => a.name !== "Etwas eigenes" && a.name !== "Sonstiges");
|
||||
let otherActivities = allActivities.filter((a) => a.type !== "custom");
|
||||
if (selectedDateType === "short") {
|
||||
otherActivities = otherActivities.filter((a) => a.type === "short");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user