From c6913f7d9e636420ccc0d521ad8bdcfa375cfd44 Mon Sep 17 00:00:00 2001 From: Michael Kochell <6913320+mickmister@users.noreply.github.com> Date: Tue, 26 Jul 2022 11:31:34 -0400 Subject: [PATCH] support plugin setting property `hosting` (#20677) Co-authored-by: Mattermod --- model/manifest.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/model/manifest.go b/model/manifest.go index d017df164e..6b7ddbd84d 100644 --- a/model/manifest.go +++ b/model/manifest.go @@ -84,6 +84,11 @@ type PluginSetting struct { // For "radio" or "dropdown" settings, this is the list of pre-defined options that the user can choose // from. Options []*PluginOption `json:"options,omitempty" yaml:"options,omitempty"` + + // The intended hosting environment for this plugin setting. Can be "cloud" or "on-prem". When this field is set, + // and the opposite environment is running the plugin, the setting will be hidden in the admin console UI. + // Note that this functionality is entirely client-side, so the plugin needs to handle the case of invalid submissions. + Hosting string `json:"hosting"` } type PluginSettingsSchema struct {