fix: resolve JS errors on messages and platform-homepage pages
- messages.js: Add missing `error` property required by error_state macro - platform-homepage.html: Use `<template x-if>` instead of `x-show` to prevent Alpine from evaluating `page.template` when `page` is null 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -33,7 +33,8 @@
|
|||||||
{{ alert_dynamic(type='success', message_var='successMessage', show_condition='successMessage') }}
|
{{ alert_dynamic(type='success', message_var='successMessage', show_condition='successMessage') }}
|
||||||
|
|
||||||
<!-- Main Form -->
|
<!-- Main Form -->
|
||||||
<div x-show="!loading && page" class="bg-white dark:bg-gray-800 rounded-lg shadow-md overflow-hidden">
|
<template x-if="!loading && page">
|
||||||
|
<div class="bg-white dark:bg-gray-800 rounded-lg shadow-md overflow-hidden">
|
||||||
<form @submit.prevent="savePage()">
|
<form @submit.prevent="savePage()">
|
||||||
<!-- Template Selection -->
|
<!-- Template Selection -->
|
||||||
<div class="p-6 border-b border-gray-200 dark:border-gray-700">
|
<div class="p-6 border-b border-gray-200 dark:border-gray-700">
|
||||||
@@ -213,6 +214,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block extra_scripts %}
|
{% block extra_scripts %}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ function adminMessages(initialConversationId = null) {
|
|||||||
|
|
||||||
// Loading states
|
// Loading states
|
||||||
loading: true,
|
loading: true,
|
||||||
|
error: null,
|
||||||
loadingConversations: false,
|
loadingConversations: false,
|
||||||
loadingMessages: false,
|
loadingMessages: false,
|
||||||
sendingMessage: false,
|
sendingMessage: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user