Skip to content

client_v2: filter update interval resets to 24h; modal labels don't follow language switch #8550

Description

@hoang-rio

Environment

  • AdGuard Home client_v2 (SolidJS migration)
  • Any browser

Description

Two bugs in the new client_v2 frontend:

  1. Filter update interval resets to 24h. In Settings → Filters, toggling the "Enabled" switch and saving an interval (e.g. 1 hour) works, but the interval silently returns to 24 hours on the next page load / config update. The mount effect in Settings/FiltersConfig posts setFiltersConfig with the default interval before the current filtering status has loaded, overwriting the saved value on the backend.

  2. Interval radio labels stay in English after switching language. With the UI language set to Vietnamese (or any non-English locale), the filter update modal's interval radios render English labels ("Disabled", "Every hour", …) while the rest of the dialog is translated. The radio options are built once at module load with the initial locale instead of being re-resolved per current language.

Steps to reproduce

  1. Open Settings → Filters, enable filtering, set update interval to 1 hour, save.
  2. Reload the page → interval shows 24 hours again.
  3. Switch UI language to Vietnamese, open the filter update modal → radio labels remain English.

Expected behavior

  1. The saved filter update interval persists.
  2. Modal radio labels follow the current UI language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions