@growy/strapi-plugin-encrypted-field 2.1.4 → 2.1.5
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/admin/src/index.js +20 -1
- package/package.json +1 -1
package/admin/src/index.js
CHANGED
|
@@ -101,7 +101,7 @@ export default {
|
|
|
101
101
|
},
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
// Agregar página de auditoría al menú
|
|
104
|
+
// Agregar página de auditoría al menú - Strapi 5 approach
|
|
105
105
|
app.addMenuLink({
|
|
106
106
|
to: '/plugins/encrypted-field/audit-logs',
|
|
107
107
|
icon: 'chartLine',
|
|
@@ -120,6 +120,25 @@ export default {
|
|
|
120
120
|
},
|
|
121
121
|
],
|
|
122
122
|
});
|
|
123
|
+
|
|
124
|
+
// También agregar como página independiente para acceso directo
|
|
125
|
+
app.addSettingsLink('plugins', {
|
|
126
|
+
id: 'encrypted-field-audit-logs',
|
|
127
|
+
intlLabel: {
|
|
128
|
+
id: 'encrypted-field.menu.audit-logs',
|
|
129
|
+
defaultMessage: 'Logs de Auditoría',
|
|
130
|
+
},
|
|
131
|
+
Component: async () => {
|
|
132
|
+
const { AuditLogs } = await import('./pages/AuditLogs');
|
|
133
|
+
return AuditLogs;
|
|
134
|
+
},
|
|
135
|
+
permissions: [
|
|
136
|
+
{
|
|
137
|
+
action: 'plugin::encrypted-field.read',
|
|
138
|
+
subject: null,
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
});
|
|
123
142
|
},
|
|
124
143
|
|
|
125
144
|
async registerTrads({ locales }) {
|