fix: add missing data() extension to email-templates.js

The emailTemplatesPage() Alpine.js component was missing the ...data()
extension from init-alpine.js, causing JavaScript errors. Added the
base layout inheritance and currentPage for proper navigation state.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 22:22:39 +01:00
parent 334b28e5b5
commit 931c178109

View File

@@ -12,6 +12,12 @@ const emailTemplatesLog = window.LogConfig?.createLogger?.('emailTemplates') ||
function emailTemplatesPage() {
return {
// Inherit base layout functionality from init-alpine.js
...data(),
// Set current page for navigation
currentPage: 'email-templates',
// Data
loading: true,
templates: [],