mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
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:
@@ -395,11 +395,13 @@ export function ThemeTab() {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Save / Cancel / Reset buttons */}
|
{/* Save / Cancel — always visible when there are unsaved changes */}
|
||||||
<div className="flex flex-wrap items-center gap-3">
|
|
||||||
{hasUnsavedChanges && (
|
{hasUnsavedChanges && (
|
||||||
<>
|
<div className="flex flex-wrap items-center gap-3">
|
||||||
<button
|
<button
|
||||||
onClick={() => updateColorsMutation.mutate(draftColors)}
|
onClick={() => updateColorsMutation.mutate(draftColors)}
|
||||||
disabled={updateColorsMutation.isPending}
|
disabled={updateColorsMutation.isPending}
|
||||||
@@ -416,12 +418,8 @@ export function ThemeTab() {
|
|||||||
>
|
>
|
||||||
{t('common.cancel')}
|
{t('common.cancel')}
|
||||||
</button>
|
</button>
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Reset all colors */}
|
{/* Reset all colors */}
|
||||||
<div className="flex justify-end">
|
<div className="flex justify-end">
|
||||||
|
|||||||
Reference in New Issue
Block a user