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:
zhangpeng
2022-10-20 17:09:40 +08:00
committed by GitHub
parent 41ac27ad31
commit 7300405a26
2 changed files with 27 additions and 14 deletions

View File

@@ -37,3 +37,7 @@ func (s *Options) ApplyTo(options *Options) {
options.Endpoint = s.Endpoint
}
}
func (s *Options) IsEnabled() bool {
return s.Endpoint != ""
}