dify/web/app/components/workflow-app
-LAN- 1a65600b54
fix: conversation opener feature state persistence and display
This commit fixes issue #26500 where the conversation opener feature
doesn't preserve its enabled state and doesn't work correctly.

Changes:
1. Updated feature initialization logic to check for both opening_statement
   and suggested_questions when determining if the feature is enabled
2. Simplified save logic to always send the actual content instead of
   clearing it when disabled
3. Added automatic modal opening when user toggles feature on without content
4. Added logic to automatically set enabled state based on content presence
5. Added logic to disable feature if user cancels modal without adding content

This ensures that:
- The feature's enabled state is correctly determined from saved content
- Users must add content (opening statement or suggested questions) to enable the feature
- The enabled state is automatically managed based on content presence
- The feature state persists correctly across page refreshes
2025-09-30 18:18:01 +08:00
..
components feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
hooks fix: conversation opener feature state persistence and display 2025-09-30 18:18:01 +08:00
store/workflow feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
index.tsx fix: conversation opener feature state persistence and display 2025-09-30 18:18:01 +08:00