Merge pull request #160 from BEDOLAGA-DEV/fix/theme-colors-save-button

fix: theme custom colors not persisting after navigation
This commit is contained in:
Egor
2026-02-07 01:02:26 +03:00
committed by GitHub

View File

@@ -395,11 +395,13 @@ export function ThemeTab() {
/>
</div>
</div>
</div>
)}
</div>
{/* Save / Cancel / Reset buttons */}
<div className="flex flex-wrap items-center gap-3">
{/* Save / Cancel — always visible when there are unsaved changes */}
{hasUnsavedChanges && (
<>
<div className="flex flex-wrap items-center gap-3">
<button
onClick={() => updateColorsMutation.mutate(draftColors)}
disabled={updateColorsMutation.isPending}
@@ -416,12 +418,8 @@ export function ThemeTab() {
>
{t('common.cancel')}
</button>
</>
)}
</div>
</div>
)}
</div>
{/* Reset all colors */}
<div className="flex justify-end">