feat: add new property

pull/12288/head
deviantony 2 months ago
parent 3800a958da
commit 414de67b38
No known key found for this signature in database

@ -53,6 +53,7 @@ type publicSettingsResponse struct {
}
IsDockerDesktopExtension bool `json:"IsDockerDesktopExtension" example:"false"`
NewProperty string
}
// @id SettingsPublic
@ -87,6 +88,7 @@ func generatePublicSettings(appSettings *portainer.Settings) *publicSettingsResp
Features: featureflags.FeatureFlags(),
IsFDOEnabled: appSettings.EnableEdgeComputeFeatures && appSettings.FDOConfiguration.Enabled,
IsAMTEnabled: appSettings.EnableEdgeComputeFeatures && appSettings.OpenAMTConfiguration.Enabled,
NewProperty: portainer.NewProperty,
}
publicSettings.Edge.PingInterval = appSettings.Edge.PingInterval

@ -1600,6 +1600,8 @@ type (
)
const (
// NewProperty simulates a new property
NewProperty = "newprop"
// APIVersion is the version number of the Portainer API
APIVersion = "2.21.2"
// Edition is what this edition of Portainer is called

Loading…
Cancel
Save