From 2b8ee4c7a5e16998ea49b0f3b015503fee7e5e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Colomb?= Date: Sun, 1 Dec 2024 13:30:05 +0100 Subject: [PATCH] chore(gui): cache input type in each advanced settings category (#9802) 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. --- .../settings/advancedSettingsModalView.html | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/gui/default/syncthing/settings/advancedSettingsModalView.html b/gui/default/syncthing/settings/advancedSettingsModalView.html index ae92c0150..074a35fb2 100644 --- a/gui/default/syncthing/settings/advancedSettingsModalView.html +++ b/gui/default/syncthing/settings/advancedSettingsModalView.html @@ -34,11 +34,11 @@
-
+
- - + +
@@ -53,11 +53,11 @@
-
+
- - + +
@@ -83,11 +83,11 @@
-
+
- - + +
@@ -113,11 +113,11 @@
-
+
- - + +
@@ -141,11 +141,11 @@
-
+
- - + +
@@ -157,11 +157,11 @@
-
+
- - + +
@@ -173,14 +173,14 @@
-
+
- - + +