Skip to content

chore(gui): cache input type in each advanced settings category#9802

Merged
calmh merged 2 commits intosyncthing:mainfrom
acolomb:advanced-config-inputTypeFor
Dec 1, 2024
Merged

chore(gui): cache input type in each advanced settings category#9802
calmh merged 2 commits intosyncthing:mainfrom
acolomb:advanced-config-inputTypeFor

Conversation

@acolomb
Copy link
Copy Markdown
Member

@acolomb acolomb commented Nov 5, 2024

Each section in the advanced settings dialog has similar code to insert repeated input fields for each option. But only the first section (GUI options) was adjusted in #9743 to avoid calling the inputTypeFor() function repeatedly.

Apply the same caching to a locally scoped variable for each ng-repeat entry by defining it in an ng-init directive.

Each section in the advanced settings dialog has similar code to
insert repeated input fields for each option.  But only the first
section (GUI options) was adjusted in syncthing#9743 to avoid calling the
inputTypeFor() function repeatedly.

Apply the same caching to a locally scoped variable for each ng-repeat
entry by defining it in an ng-init directive.
@calmh calmh enabled auto-merge (squash) December 1, 2024 12:08
@calmh calmh merged commit 2b8ee4c into syncthing:main Dec 1, 2024
@acolomb acolomb deleted the advanced-config-inputTypeFor branch December 1, 2024 12:30
calmh added a commit to calmh/syncthing that referenced this pull request Dec 1, 2024
* upstream/main:
  chore(gui): cache input type in each advanced settings category (syncthing#9802)
@calmh calmh added this to the v1.29.0 milestone Dec 9, 2024
@calmh calmh added the chore label May 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants