Add switch for notification (#5283)
Signed-off-by: Gentleelephant <birdhk@kubesphere.io> Signed-off-by: Gentleelephant <birdhk@kubesphere.io> Co-authored-by: Gentleelephant <birdhk@kubesphere.io>
This commit is contained in:
@@ -37,3 +37,7 @@ func (s *Options) ApplyTo(options *Options) {
|
||||
options.Endpoint = s.Endpoint
|
||||
}
|
||||
}
|
||||
|
||||
func (s *Options) IsEnabled() bool {
|
||||
return s.Endpoint != ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user