mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
Merge pull request #217 from safing/feature/config-annotation-ui-reload
Add new config annotation for settings that require a UI reload
This commit is contained in:
commit
b6c86f30dd
1 changed files with 7 additions and 0 deletions
|
@ -112,6 +112,13 @@ const (
|
||||||
// when the user has a certain feature ID in the subscription plan.
|
// when the user has a certain feature ID in the subscription plan.
|
||||||
// The type is []string or string.
|
// The type is []string or string.
|
||||||
RequiresFeatureID = "safing/portmaster:ui:config:requires-feature"
|
RequiresFeatureID = "safing/portmaster:ui:config:requires-feature"
|
||||||
|
|
||||||
|
// RequiresUIReloadAnnotation can be used to inform the UI that changing the value
|
||||||
|
// of the annotated setting requires a full reload of the user interface.
|
||||||
|
// The value of this annotation does not matter as the sole presence of
|
||||||
|
// the annotation key is enough. Though, users are advised to set the value
|
||||||
|
// of this annotation to true.
|
||||||
|
RequiresUIReloadAnnotation = "safing/portmaster:ui:requires-reload"
|
||||||
)
|
)
|
||||||
|
|
||||||
// QuickSettingsAction defines the action of a quick setting.
|
// QuickSettingsAction defines the action of a quick setting.
|
||||||
|
|
Loading…
Add table
Reference in a new issue