diff --git a/CHANGELOG.md b/CHANGELOG.md index a2986c1..712cf38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +# 05.01.2024, Version 3.4.1 + +- replace `ThemeMode` field with `Appearance` for status page resource in [#35](https://github.com/iLert/ilert-go/pull/35) + # 03.01.2024, Version 3.4.0 - deprecate uptime monitors in [#32](https://github.com/iLert/ilert-go/pull/32) diff --git a/status_page.go b/status_page.go index e43aaf3..ed2e4dc 100644 --- a/status_page.go +++ b/status_page.go @@ -34,7 +34,8 @@ type StatusPage struct { IpWhitelist []string `json:"ipWhitelist,omitempty"` AccountWideView bool `json:"accountWideView,omitempty"` Structure *StatusPageStructure `json:"structure,omitempty"` - ThemeMode string `json:"themeMode,omitempty"` + ThemeMode string `json:"themeMode,omitempty"` // please use field `Appearance` instead + Appearance string `json:"appearance,omitempty"` } // StatusPageStructure defines status page structure @@ -105,8 +106,8 @@ var StatusPageLayoutAll = []string{ StatusPageLayout.Responsive, } -// StatusPageThemeMode defines status page theme mode -var StatusPageThemeMode = struct { +// StatusPageAppearance defines status page appearance +var StatusPageAppearance = struct { Light string Dark string }{ @@ -114,10 +115,10 @@ var StatusPageThemeMode = struct { Dark: "DARK", } -// StatusPageThemeModeAll defines all status page theme modes -var StatusPageThemeModeAll = []string{ - StatusPageThemeMode.Light, - StatusPageThemeMode.Dark, +// StatusPageAppearanceAll defines all status page appearances +var StatusPageAppearanceAll = []string{ + StatusPageAppearance.Light, + StatusPageAppearance.Dark, } // StatusPageElementOption defines status page element option diff --git a/version.go b/version.go index dff6edf..3e1fbe0 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package ilert // Version package version -const Version = "v3.4.0" +const Version = "v3.4.1"