Fix label for toggle plugins
Change-Id: I2697b856ff251c7c521c546f5351c1ca80a7aa2d
diff --git a/Changes b/Changes
index c7c3d9d..82ba6c3 100755
--- a/Changes
+++ b/Changes
@@ -1,6 +1,8 @@
-0.39 2020-06-24
+0.39 2020-06-25
- Add information on secret file to Readme.
- Change default API endpoint to korap.ids-mannheim.de.
+ - Add information on secret file to Readme.
+ - Fix label for toggle plugins.
WARNING: If you relied on the former default API endpoint
being http://localhost:9999/, this will break your
diff --git a/dev/js/src/plugin/server.js b/dev/js/src/plugin/server.js
index 4aeb6b9..e5578be 100644
--- a/dev/js/src/plugin/server.js
+++ b/dev/js/src/plugin/server.js
@@ -181,7 +181,7 @@
// TODO:
// Lazy registration (see above!)
- KorAP.Panel[panel].actions.addToggle("Title",["title"], state);
+ KorAP.Panel[panel].actions.addToggle(title, ["title"], state);
// Get the URL of the service