strapi-plugin-magic-sessionmanager 4.19.0 → 4.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/admin/{Analytics-AzG-hPvn.js → Analytics-BElmzyNJ.js} +1 -1
- package/dist/admin/{Analytics-DSXe9BPn.mjs → Analytics-BqFlgLnN.mjs} +1 -1
- package/dist/admin/{App-7UDfLwMK.mjs → App-0thsC_P9.mjs} +107 -58
- package/dist/admin/{App-D08oGxy4.js → App-D_J2eeEG.js} +140 -91
- package/dist/admin/{OnlineUsersWidget-DIhJZ77w.mjs → OnlineUsersWidget-BgJ1ws-5.mjs} +1 -1
- package/dist/admin/{OnlineUsersWidget-CK0_o7Jk.js → OnlineUsersWidget-DMZBwqdY.js} +1 -1
- package/dist/admin/{Settings-DnNBDP1I.js → Settings-FOkui_ke.js} +40 -270
- package/dist/admin/{Settings-CneNJppG.mjs → Settings-QN3Mu4AQ.mjs} +2 -232
- package/dist/admin/{de-CJZtJdhC.js → de-CEyi4lpp.js} +2 -1
- package/dist/admin/{de-DvYUwhjB.mjs → de-uGKSKVYD.mjs} +2 -1
- package/dist/admin/{en-BZ2YkNIU.js → en-CSXeJYKy.js} +2 -1
- package/dist/admin/{en-B8m9k-qd.mjs → en-Yu7tfwqx.mjs} +2 -1
- package/dist/admin/{es-BBsMtof1.js → es-BrKqXhAU.js} +2 -1
- package/dist/admin/{es-DBH36rrX.mjs → es-iNG9Amf9.mjs} +2 -1
- package/dist/admin/{fr-CLvB1rGe.mjs → fr-CaFICHlf.mjs} +2 -1
- package/dist/admin/{fr-Cw6nc38j.js → fr-DKZNfdlH.js} +2 -1
- package/dist/admin/{index-BSUrdxxt.js → index-DEYtqPc3.js} +9 -9
- package/dist/admin/{index-5Zb3GVml.mjs → index-h-ksmM8A.mjs} +9 -9
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/{pt-CVht14if.mjs → pt-Bz2hWVrq.mjs} +2 -1
- package/dist/admin/{pt-CjnMe7Z-.js → pt-IEagyVDL.js} +2 -1
- package/dist/admin/settingsTabs-D02CuEvs.mjs +433 -0
- package/dist/admin/settingsTabs-N4TFn-mw.js +432 -0
- package/package.json +1 -1
- package/dist/admin/dashboardModel-CjU0V7Sx.js +0 -188
- package/dist/admin/dashboardModel-OyQ_39aF.mjs +0 -189
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [4.19.1](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.19.0...v4.19.1) (2026-11-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **admin:** show changed settings with their Settings page labels ([#40](https://github.com/Schero94/Magic-Sessionmanager/issues/40)) ([6d5d197](https://github.com/Schero94/Magic-Sessionmanager/commit/6d5d19778fc10533efbf7e009373ba5b8bb02bdf))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Release type: patch (`fix(admin)`). No API, route or permission change.
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **Changed settings in plain words.** "Settings changed" rows and their details showed raw keys ("maxFailedLogins, lockoutDurationMinutes, adminSignInHistory and 2 more"). They now use the labels of the Configuration page in the admin language, grouped by tab, for example "Login protection: Lock an IP address after, Lock for · Admin activity: Record admin sign-ins". The table names at most three settings; the details list every tab on its own line. Only a key the Configuration page does not know keeps its raw name.
|
|
14
|
+
|
|
1
15
|
# [4.19.0](https://github.com/Schero94/Magic-Sessionmanager/compare/v4.18.0...v4.19.0) (2026-11-25)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -9,7 +9,7 @@ const styled = require("styled-components");
|
|
|
9
9
|
const designSystem = require("@strapi/design-system");
|
|
10
10
|
const icons = require("@strapi/icons");
|
|
11
11
|
const symbols = require("@strapi/icons/symbols");
|
|
12
|
-
const index = require("./index-
|
|
12
|
+
const index = require("./index-DEYtqPc3.js");
|
|
13
13
|
const SectionCard = require("./SectionCard-BlWv8CRt.js");
|
|
14
14
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
15
15
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
@@ -7,7 +7,7 @@ import styled from "styled-components";
|
|
|
7
7
|
import { Typography, Flex, LinkButton, Button, EmptyStateLayout, VisuallyHidden } from "@strapi/design-system";
|
|
8
8
|
import { ArrowClockwise, ChartBubble, User, Clock, Calendar } from "@strapi/icons";
|
|
9
9
|
import { EmptyDocuments } from "@strapi/icons/symbols";
|
|
10
|
-
import { K as normalizeDeviceType, u as useSessionFormatters, f as pluginId, n as isCancelledRequest, l as logSafeAdminError, h as PersistentAlert, R as ReadableText, q as PageShell, r as StatGrid, s as StatCard, z as EqualGrid, b as getTranslation, L as getDeviceTypeMessage } from "./index-
|
|
10
|
+
import { K as normalizeDeviceType, u as useSessionFormatters, f as pluginId, n as isCancelledRequest, l as logSafeAdminError, h as PersistentAlert, R as ReadableText, q as PageShell, r as StatGrid, s as StatCard, z as EqualGrid, b as getTranslation, L as getDeviceTypeMessage } from "./index-h-ksmM8A.mjs";
|
|
11
11
|
import { S as SectionCard } from "./SectionCard-D51bv4Hi.mjs";
|
|
12
12
|
const ANALYTICS_UNKNOWN_KEY = "unknown";
|
|
13
13
|
const VERSION_TOKEN = /^v?\d[\w.]*$/i;
|
|
@@ -7,8 +7,8 @@ import { Typography, Flex, Loader, Button, Modal, Accordion, Box, IconButton, Li
|
|
|
7
7
|
import { Earth, Duplicate, Cross, Eye, Trash, More, CaretDown, Download, ArrowClockwise, Check, Clock, User, ChartBubble, Cog, SignOut, Information, Webhooks, WarningCircle, Monitor, Key, Stack, Lock, CrossCircle, Shield, CheckCircle, ArrowRight } from "@strapi/icons";
|
|
8
8
|
import { EmptyDocuments } from "@strapi/icons/symbols";
|
|
9
9
|
import styled, { useTheme } from "styled-components";
|
|
10
|
-
import { g as getSessionEndReason, a as getEndReasonPresentation, b as getTranslation, p as presentText, u as useSessionFormatters, c as getSessionStatus, d as getDevicePresentation, i as isNativeOnlySession, e as getSessionEndReasonPresentation, D as DeviceIcon, S as StatusBadge, P as PropertyList, C as ConfirmAction, t as toValidDate, f as pluginId, l as logSafeAdminError, h as PersistentAlert, R as ReadableText, j as pluginPermissions, M as MissingValue, V as ValueOrMissing, k as SESSION_STATES, m as SESSION_STATUS_PRESENTATION, n as isCancelledRequest, o as SESSION_FILTER_OPTIONS, E as END_REASON_FILTER_OPTIONS, q as PageShell, r as StatGrid, s as StatCard, v as restoreDialogFocus, w as requireSessionList, x as getBadgeColors, T as TargetLink$1 } from "./index-
|
|
11
|
-
import { i as isRiskSource, g as getSessionUserLabels, a as getUserEditPath, R as RISK_SETTINGS_PATH, b as RowActions, s as shouldIsolateActionKey, c as shouldRedispatchEscape, D as DASHBOARD_COMPACT_TABLE_COLUMNS, d as DASHBOARD_TABLE_COLUMNS, r as readDisclosureOpen, e as getBrowserStorage, w as writeDisclosureOpen, u as useElementWidth, p as parseDashboardQuery, A as AUTO_REFRESH_INTERVAL_MS, f as pickFocusSessionId, h as encodeSearchQuery, j as shouldUseCompactTable, P as PAGE_SIZE_OPTIONS, k as DEFAULT_PAGE_SIZE, l as getExportDeviceInfo, m as getErrorStatus, n as hasActiveFilters } from "./
|
|
10
|
+
import { g as getSessionEndReason, a as getEndReasonPresentation, b as getTranslation, p as presentText, u as useSessionFormatters, c as getSessionStatus, d as getDevicePresentation, i as isNativeOnlySession, e as getSessionEndReasonPresentation, D as DeviceIcon, S as StatusBadge, P as PropertyList, C as ConfirmAction, t as toValidDate, f as pluginId, l as logSafeAdminError, h as PersistentAlert, R as ReadableText, j as pluginPermissions, M as MissingValue, V as ValueOrMissing, k as SESSION_STATES, m as SESSION_STATUS_PRESENTATION, n as isCancelledRequest, o as SESSION_FILTER_OPTIONS, E as END_REASON_FILTER_OPTIONS, q as PageShell, r as StatGrid, s as StatCard, v as restoreDialogFocus, w as requireSessionList, x as getBadgeColors, T as TargetLink$1 } from "./index-h-ksmM8A.mjs";
|
|
11
|
+
import { i as isRiskSource, g as getSessionUserLabels, a as getUserEditPath, R as RISK_SETTINGS_PATH, b as RowActions, s as shouldIsolateActionKey, c as shouldRedispatchEscape, D as DASHBOARD_COMPACT_TABLE_COLUMNS, d as DASHBOARD_TABLE_COLUMNS, r as readDisclosureOpen, e as getBrowserStorage, w as writeDisclosureOpen, u as useElementWidth, p as parseDashboardQuery, A as AUTO_REFRESH_INTERVAL_MS, f as pickFocusSessionId, h as encodeSearchQuery, j as shouldUseCompactTable, P as PAGE_SIZE_OPTIONS, k as DEFAULT_PAGE_SIZE, l as getExportDeviceInfo, m as getErrorStatus, n as hasActiveFilters, S as SETTINGS_TAB_IDS, o as SETTINGS_TAB_FIELDS, q as SETTINGS_FIELD_LABELS, t as SETTINGS_TAB_LABELS } from "./settingsTabs-D02CuEvs.mjs";
|
|
12
12
|
const EndReason = ({ session, reason, variant = "omega", textColor = "neutral800" }) => {
|
|
13
13
|
const { formatMessage } = useIntl();
|
|
14
14
|
const key = reason || getSessionEndReason(session);
|
|
@@ -2912,6 +2912,32 @@ function parseActivityPageQuery(query) {
|
|
|
2912
2912
|
function hasActivityPageFilters(view) {
|
|
2913
2913
|
return view.event !== "all" || view.period !== "30" || view.adminId !== null;
|
|
2914
2914
|
}
|
|
2915
|
+
function groupChangedSettings(keys) {
|
|
2916
|
+
const list = Array.isArray(keys) ? keys.filter((key) => typeof key === "string" && key) : [];
|
|
2917
|
+
const byTab = /* @__PURE__ */ new Map();
|
|
2918
|
+
const unknown = [];
|
|
2919
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2920
|
+
for (const key of list) {
|
|
2921
|
+
const tab = SETTINGS_TAB_IDS.find((id) => SETTINGS_TAB_FIELDS[id]?.includes(key));
|
|
2922
|
+
const entry = SETTINGS_FIELD_LABELS[key];
|
|
2923
|
+
if (!tab || !entry) {
|
|
2924
|
+
if (!seen.has(`raw:${key}`)) unknown.push({ key, label: null });
|
|
2925
|
+
seen.add(`raw:${key}`);
|
|
2926
|
+
continue;
|
|
2927
|
+
}
|
|
2928
|
+
if (seen.has(`label:${entry[0]}`)) continue;
|
|
2929
|
+
seen.add(`label:${entry[0]}`);
|
|
2930
|
+
if (!byTab.has(tab)) byTab.set(tab, []);
|
|
2931
|
+
byTab.get(tab).push({ key, label: message(entry[0], entry[1]) });
|
|
2932
|
+
}
|
|
2933
|
+
const groups = SETTINGS_TAB_IDS.filter((tab) => byTab.has(tab)).map((tab) => ({
|
|
2934
|
+
tab,
|
|
2935
|
+
label: message(SETTINGS_TAB_LABELS[tab][0], SETTINGS_TAB_LABELS[tab][1]),
|
|
2936
|
+
fields: byTab.get(tab)
|
|
2937
|
+
}));
|
|
2938
|
+
if (unknown.length) groups.push({ tab: null, label: null, fields: unknown });
|
|
2939
|
+
return groups;
|
|
2940
|
+
}
|
|
2915
2941
|
const ACTIVITY_ACTION_LABELS = Object.freeze({
|
|
2916
2942
|
all: message("adminPanel.activity.action.all", "All actions"),
|
|
2917
2943
|
view: message("adminPanel.activity.action.view", "Opened"),
|
|
@@ -3004,6 +3030,81 @@ function buildActivityCsv(rows) {
|
|
|
3004
3030
|
])
|
|
3005
3031
|
);
|
|
3006
3032
|
}
|
|
3033
|
+
const settingsGroupText = (t, group) => {
|
|
3034
|
+
const fields = group.fields.map(
|
|
3035
|
+
(field) => field.label ? t(field.label.messageId, field.label.defaultMessage) : field.key
|
|
3036
|
+
).join(", ");
|
|
3037
|
+
return group.label ? t("adminPanel.activity.settingsGroup", "{tab}: {fields}", {
|
|
3038
|
+
tab: t(group.label.messageId, group.label.defaultMessage),
|
|
3039
|
+
fields
|
|
3040
|
+
}) : fields;
|
|
3041
|
+
};
|
|
3042
|
+
const changedSettingsText = (t, keys, { limit } = {}) => {
|
|
3043
|
+
const groups = groupChangedSettings(keys);
|
|
3044
|
+
const total = groups.reduce((sum, group) => sum + group.fields.length, 0);
|
|
3045
|
+
if (!total) return "";
|
|
3046
|
+
let budget = limit && limit > 0 ? limit : total;
|
|
3047
|
+
const shown = [];
|
|
3048
|
+
for (const group of groups) {
|
|
3049
|
+
if (budget <= 0) break;
|
|
3050
|
+
shown.push({ ...group, fields: group.fields.slice(0, budget) });
|
|
3051
|
+
budget -= Math.min(budget, group.fields.length);
|
|
3052
|
+
}
|
|
3053
|
+
const named = shown.reduce((sum, group) => sum + group.fields.length, 0);
|
|
3054
|
+
const text = shown.map((group) => settingsGroupText(t, group)).join(" · ");
|
|
3055
|
+
return named < total ? t("adminPanel.activity.settingsMore", "{names} and {count, number} more", {
|
|
3056
|
+
names: text,
|
|
3057
|
+
count: total - named
|
|
3058
|
+
}) : text;
|
|
3059
|
+
};
|
|
3060
|
+
const changedSettingsLines = (t, keys) => groupChangedSettings(keys).map((group) => settingsGroupText(t, group));
|
|
3061
|
+
const noAdminText = (t, row) => row?.event === "security-log.retention.purged" ? t("adminPanel.activity.system", "System") : t("adminPanel.activity.unknownAccount", "Unknown account");
|
|
3062
|
+
const deviceText = (t, row) => {
|
|
3063
|
+
if (row.browser && row.os) {
|
|
3064
|
+
return t("adminPanel.activity.browserOnOs", "{browser} on {os}", {
|
|
3065
|
+
browser: row.browser,
|
|
3066
|
+
os: row.os
|
|
3067
|
+
});
|
|
3068
|
+
}
|
|
3069
|
+
return row.browser || row.os || "";
|
|
3070
|
+
};
|
|
3071
|
+
const ipText = (t, row) => {
|
|
3072
|
+
if (!row.ipAddress) return "";
|
|
3073
|
+
return row.ipAnonymized ? t("adminPanel.activity.ipAnonymized", "{ip} (anonymised)", { ip: row.ipAddress }) : row.ipAddress;
|
|
3074
|
+
};
|
|
3075
|
+
const eventDetailText = (t, row, presentation, withActor) => {
|
|
3076
|
+
const parts = [];
|
|
3077
|
+
if (presentation.detail) {
|
|
3078
|
+
parts.push(t(presentation.detail.messageId, presentation.detail.defaultMessage));
|
|
3079
|
+
}
|
|
3080
|
+
if (Number.isInteger(row.attempts) && row.attempts > 1) {
|
|
3081
|
+
parts.push(
|
|
3082
|
+
t(
|
|
3083
|
+
"adminPanel.activity.attempts",
|
|
3084
|
+
"{count, plural, one {# attempt} other {# attempts}} within 5 minutes",
|
|
3085
|
+
{ count: row.attempts }
|
|
3086
|
+
)
|
|
3087
|
+
);
|
|
3088
|
+
}
|
|
3089
|
+
const changed = changedSettingsText(t, row.change?.keys, { limit: 3 });
|
|
3090
|
+
if (changed) parts.push(changed);
|
|
3091
|
+
if (Number.isInteger(row.purge?.count)) {
|
|
3092
|
+
parts.push(
|
|
3093
|
+
Number.isInteger(row.purge?.retentionDays) ? t(
|
|
3094
|
+
"adminPanel.activity.purgedDetail",
|
|
3095
|
+
"{count, plural, one {# event} other {# events}}, older than {days, plural, one {# day} other {# days}}",
|
|
3096
|
+
{ count: row.purge.count, days: row.purge.retentionDays }
|
|
3097
|
+
) : t("adminPanel.activity.purgedCount", "{count, plural, one {# event} other {# events}}", {
|
|
3098
|
+
count: row.purge.count
|
|
3099
|
+
})
|
|
3100
|
+
);
|
|
3101
|
+
}
|
|
3102
|
+
if (withActor && row.actor?.name) {
|
|
3103
|
+
parts.push(t("adminPanel.activity.byAdmin", "by {name}", { name: row.actor.name }));
|
|
3104
|
+
}
|
|
3105
|
+
return parts.join(" · ");
|
|
3106
|
+
};
|
|
3107
|
+
const contentTypeText = (row) => [row.contentType?.name, row.entry?.locale].filter(Boolean).join(" · ");
|
|
3007
3108
|
const useT$3 = () => {
|
|
3008
3109
|
const { formatMessage } = useIntl();
|
|
3009
3110
|
return (id, defaultMessage, values) => formatMessage({ id: getTranslation(id), defaultMessage }, values);
|
|
@@ -3112,7 +3213,6 @@ const EventTime = ({ value, compact = false }) => {
|
|
|
3112
3213
|
compact ? null : /* @__PURE__ */ jsx(Typography, { variant: "pi", textColor: "neutral600", children: /* @__PURE__ */ jsx(NoWrap, { children: formatDate(date, SHORT_DATE) }) })
|
|
3113
3214
|
] });
|
|
3114
3215
|
};
|
|
3115
|
-
const noAdminText = (t, row) => row?.event === "security-log.retention.purged" ? t("adminPanel.activity.system", "System") : t("adminPanel.activity.unknownAccount", "Unknown account");
|
|
3116
3216
|
const AdminName = ({ admin, row, onOpenAdmin }) => {
|
|
3117
3217
|
const t = useT$3();
|
|
3118
3218
|
if (!admin) {
|
|
@@ -3136,58 +3236,6 @@ const AdminName = ({ admin, row, onOpenAdmin }) => {
|
|
|
3136
3236
|
}
|
|
3137
3237
|
);
|
|
3138
3238
|
};
|
|
3139
|
-
const deviceText = (t, row) => {
|
|
3140
|
-
if (row.browser && row.os) {
|
|
3141
|
-
return t("adminPanel.activity.browserOnOs", "{browser} on {os}", {
|
|
3142
|
-
browser: row.browser,
|
|
3143
|
-
os: row.os
|
|
3144
|
-
});
|
|
3145
|
-
}
|
|
3146
|
-
return row.browser || row.os || "";
|
|
3147
|
-
};
|
|
3148
|
-
const ipText = (t, row) => {
|
|
3149
|
-
if (!row.ipAddress) return "";
|
|
3150
|
-
return row.ipAnonymized ? t("adminPanel.activity.ipAnonymized", "{ip} (anonymised)", { ip: row.ipAddress }) : row.ipAddress;
|
|
3151
|
-
};
|
|
3152
|
-
const eventDetailText = (t, row, presentation, withActor) => {
|
|
3153
|
-
const parts = [];
|
|
3154
|
-
if (presentation.detail) {
|
|
3155
|
-
parts.push(t(presentation.detail.messageId, presentation.detail.defaultMessage));
|
|
3156
|
-
}
|
|
3157
|
-
if (Number.isInteger(row.attempts) && row.attempts > 1) {
|
|
3158
|
-
parts.push(
|
|
3159
|
-
t(
|
|
3160
|
-
"adminPanel.activity.attempts",
|
|
3161
|
-
"{count, plural, one {# attempt} other {# attempts}} within 5 minutes",
|
|
3162
|
-
{ count: row.attempts }
|
|
3163
|
-
)
|
|
3164
|
-
);
|
|
3165
|
-
}
|
|
3166
|
-
const keys = Array.isArray(row.change?.keys) ? row.change.keys : [];
|
|
3167
|
-
if (keys.length) {
|
|
3168
|
-
parts.push(
|
|
3169
|
-
keys.length > 3 ? t("adminPanel.activity.settingsMore", "{names} and {count, number} more", {
|
|
3170
|
-
names: keys.slice(0, 3).join(", "),
|
|
3171
|
-
count: keys.length - 3
|
|
3172
|
-
}) : keys.join(", ")
|
|
3173
|
-
);
|
|
3174
|
-
}
|
|
3175
|
-
if (Number.isInteger(row.purge?.count)) {
|
|
3176
|
-
parts.push(
|
|
3177
|
-
Number.isInteger(row.purge?.retentionDays) ? t(
|
|
3178
|
-
"adminPanel.activity.purgedDetail",
|
|
3179
|
-
"{count, plural, one {# event} other {# events}}, older than {days, plural, one {# day} other {# days}}",
|
|
3180
|
-
{ count: row.purge.count, days: row.purge.retentionDays }
|
|
3181
|
-
) : t("adminPanel.activity.purgedCount", "{count, plural, one {# event} other {# events}}", {
|
|
3182
|
-
count: row.purge.count
|
|
3183
|
-
})
|
|
3184
|
-
);
|
|
3185
|
-
}
|
|
3186
|
-
if (withActor && row.actor?.name) {
|
|
3187
|
-
parts.push(t("adminPanel.activity.byAdmin", "by {name}", { name: row.actor.name }));
|
|
3188
|
-
}
|
|
3189
|
-
return parts.join(" · ");
|
|
3190
|
-
};
|
|
3191
3239
|
const SignInDetails = ({ row }) => {
|
|
3192
3240
|
const t = useT$3();
|
|
3193
3241
|
const ip = ipText(t, row);
|
|
@@ -3262,7 +3310,6 @@ const ActivityEntry = ({ row }) => {
|
|
|
3262
3310
|
}
|
|
3263
3311
|
);
|
|
3264
3312
|
};
|
|
3265
|
-
const contentTypeText = (row) => [row.contentType?.name, row.entry?.locale].filter(Boolean).join(" · ");
|
|
3266
3313
|
const EventDetailsModal = ({ title, items, footerAction, onClose, onCloseAutoFocus }) => {
|
|
3267
3314
|
const t = useT$3();
|
|
3268
3315
|
return /* @__PURE__ */ jsx(Modal.Root, { open: true, onOpenChange: (open) => open ? null : onClose(), children: /* @__PURE__ */ jsxs(Modal.Content, { onCloseAutoFocus, "aria-describedby": void 0, children: [
|
|
@@ -3346,11 +3393,13 @@ const signInDetails = (t, formatDate, row) => {
|
|
|
3346
3393
|
});
|
|
3347
3394
|
}
|
|
3348
3395
|
if (row.change) {
|
|
3396
|
+
const lines = changedSettingsLines(t, row.change.keys);
|
|
3349
3397
|
items.push({
|
|
3350
3398
|
id: "settings",
|
|
3351
3399
|
label: t("adminPanel.activity.details.changedSettings", "Changed settings"),
|
|
3352
|
-
|
|
3353
|
-
|
|
3400
|
+
...lines.length ? {
|
|
3401
|
+
render: /* @__PURE__ */ jsx(Flex, { direction: "column", alignItems: "flex-start", gap: 1, "data-changed-settings": "", children: lines.map((line) => /* @__PURE__ */ jsx(Typography, { variant: "omega", textColor: "neutral800", children: line }, line)) })
|
|
3402
|
+
} : { value: null },
|
|
3354
3403
|
fullWidth: true
|
|
3355
3404
|
});
|
|
3356
3405
|
}
|