diff --git a/src/components/PluginSettingsSection.vue b/src/components/PluginSettingsSection.vue
index a8a36c53b..94c5fad68 100644
--- a/src/components/PluginSettingsSection.vue
+++ b/src/components/PluginSettingsSection.vue
@@ -9,18 +9,18 @@
find the setting you're looking for, click on any setting name from the list:
-
+
Expand To Show SDK Settings
- -
-
+
{{ setting.name }}
@@ -54,7 +54,7 @@
>
that defines the settings for this plugin.
-
+
{{ setting.label }} ({{ setting.name }})
@@ -84,14 +84,12 @@
>meltano config {{ name }} set {{ setting.name.replace(".", " ") }} [value]
-
-
+
+
Expand To Show SDK Settings
-
+
{{ setting.label }} ({{ setting.name }})
@@ -155,15 +153,22 @@ export default {
],
};
},
- methods: {
+ computed: {
+ $settingsWithHref() {
+ return this.settings.map((setting) => ({
+ ...setting,
+ href: `#${setting.name.replace(/\./g, "-")}-setting`,
+ }));
+ },
definedSettings() {
- return this.settings.filter((setting) => !this.hardcodedValues.includes(setting.name));
+ return this.$settingsWithHref.filter(
+ (setting) => !this.hardcodedValues.includes(setting.name)
+ );
},
sdkSettings() {
- return this.settings.filter((setting) => this.hardcodedValues.includes(setting.name));
- },
- getSettingHref(setting) {
- return `#${setting.name.replace(/\./g, "-")}-setting`;
+ return this.$settingsWithHref.filter((setting) =>
+ this.hardcodedValues.includes(setting.name)
+ );
},
},
};