Skip to content

fix: rename 'Save Changes' to 'Close' in settings modal#793

Open
Arsh-sudo wants to merge 1 commit into
Charushi06:mainfrom
Arsh-sudo:fix/settings-save-button
Open

fix: rename 'Save Changes' to 'Close' in settings modal#793
Arsh-sudo wants to merge 1 commit into
Charushi06:mainfrom
Arsh-sudo:fix/settings-save-button

Conversation

@Arsh-sudo
Copy link
Copy Markdown

Summary

Closes #572

Fixes misleading "Save Changes" button in the Settings modal.

Problem

Settings changes (Dark Mode, Compact View, etc.) apply instantly
on toggle via change event listeners. The "Save Changes" button at
the bottom was misleading — it suggested changes were pending, but
they were already applied.

Fix

  • Renamed button text from "Save Changes" → "Close"
  • Simplified click handler to just close the modal
  • Removed redundant localStorage.setItem calls from the button
    (settings already save on toggle)

Behavior

Before: Button said "Save Changes" but changes were already applied
After: Button says "Close" — accurately reflects its actual function

Files Changed

  • index.html — button text + click handler

Settings changes apply instantly on toggle so the 'Save Changes' button
was misleading. Renamed to 'Close' and simplified the click handler to
just close the modal since no explicit save action is needed.

Closes Charushi06#572
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Settings "Save Changes" button is misleading — changes apply instantly without clicking it

1 participant