From ba85e45ec55b737774442a3b345c38018b96c13f Mon Sep 17 00:00:00 2001 From: Reuben Frankel Date: Tue, 22 Oct 2024 16:45:59 +0100 Subject: [PATCH] Do not display `hidden: true` or `kind: hidden` settings --- src/components/PluginSettingsSection.vue | 10 ++++++---- src/templates/Plugins.vue | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/PluginSettingsSection.vue b/src/components/PluginSettingsSection.vue index b622ea5a8..fd17c1b1c 100644 --- a/src/components/PluginSettingsSection.vue +++ b/src/components/PluginSettingsSection.vue @@ -155,10 +155,12 @@ export default { }, computed: { $settingsWithHref() { - return this.settings.map((setting) => ({ - ...setting, - href: `#${setting.name.replace(/\./g, "-")}-setting`, - })); + return this.settings + .filter((setting) => !setting.hidden && setting.kind !== "hidden") + .map((setting) => ({ + ...setting, + href: `#${setting.name.replace(/\./g, "-")}-setting`, + })); }, $isSdkPlugin() { return this.$page.plugins.keywords.includes("meltano_sdk"); diff --git a/src/templates/Plugins.vue b/src/templates/Plugins.vue index 97e0de2ba..a24f7318f 100644 --- a/src/templates/Plugins.vue +++ b/src/templates/Plugins.vue @@ -542,6 +542,7 @@ query Plugins($path: String!, $name: String!) { label description description_rendered + hidden kind placeholder value