Add independent settings access to AI Tools component
- Added a dedicated gear button to open the AI modal directly to the Settings tab. - Resolved the 'chicken and egg' problem where settings were inaccessible if the AI process failed. - Improved layout consistency with inline-flex wrapper.
This commit is contained in:
@@ -114,7 +114,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="ae-ai-tools-wrapper inline-block">
|
<div class="ae-ai-tools-wrapper inline-flex items-center gap-1">
|
||||||
<!-- Trigger Button -->
|
<!-- Trigger Button -->
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
@@ -133,6 +133,19 @@
|
|||||||
{/await}
|
{/await}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
<!-- Quick Settings Button -->
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
onclick={() => {
|
||||||
|
active_tab = 'settings';
|
||||||
|
show_modal = true;
|
||||||
|
}}
|
||||||
|
class="btn btn-sm variant-soft-surface shadow-md"
|
||||||
|
title="AI Settings"
|
||||||
|
>
|
||||||
|
<Settings size="1.2em" />
|
||||||
|
</button>
|
||||||
|
|
||||||
<!-- Unified AI Modal -->
|
<!-- Unified AI Modal -->
|
||||||
{#if show_modal}
|
{#if show_modal}
|
||||||
<Modal
|
<Modal
|
||||||
|
|||||||
Reference in New Issue
Block a user