mirror of https://github.com/portainer/portainer
feat: add new property
parent
3800a958da
commit
414de67b38
|
@ -53,6 +53,7 @@ type publicSettingsResponse struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
IsDockerDesktopExtension bool `json:"IsDockerDesktopExtension" example:"false"`
|
IsDockerDesktopExtension bool `json:"IsDockerDesktopExtension" example:"false"`
|
||||||
|
NewProperty string
|
||||||
}
|
}
|
||||||
|
|
||||||
// @id SettingsPublic
|
// @id SettingsPublic
|
||||||
|
@ -87,6 +88,7 @@ func generatePublicSettings(appSettings *portainer.Settings) *publicSettingsResp
|
||||||
Features: featureflags.FeatureFlags(),
|
Features: featureflags.FeatureFlags(),
|
||||||
IsFDOEnabled: appSettings.EnableEdgeComputeFeatures && appSettings.FDOConfiguration.Enabled,
|
IsFDOEnabled: appSettings.EnableEdgeComputeFeatures && appSettings.FDOConfiguration.Enabled,
|
||||||
IsAMTEnabled: appSettings.EnableEdgeComputeFeatures && appSettings.OpenAMTConfiguration.Enabled,
|
IsAMTEnabled: appSettings.EnableEdgeComputeFeatures && appSettings.OpenAMTConfiguration.Enabled,
|
||||||
|
NewProperty: portainer.NewProperty,
|
||||||
}
|
}
|
||||||
|
|
||||||
publicSettings.Edge.PingInterval = appSettings.Edge.PingInterval
|
publicSettings.Edge.PingInterval = appSettings.Edge.PingInterval
|
||||||
|
|
|
@ -1600,6 +1600,8 @@ type (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// NewProperty simulates a new property
|
||||||
|
NewProperty = "newprop"
|
||||||
// APIVersion is the version number of the Portainer API
|
// APIVersion is the version number of the Portainer API
|
||||||
APIVersion = "2.21.2"
|
APIVersion = "2.21.2"
|
||||||
// Edition is what this edition of Portainer is called
|
// Edition is what this edition of Portainer is called
|
||||||
|
|
Loading…
Reference in New Issue