mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Closes #41. Add option to display user's calendar response status
This commit is contained in:
@@ -53,10 +53,10 @@ func (widget *Widget) Refresh() {
|
||||
func (widget *Widget) contentFrom(onCallResponse *OnCallResponse) string {
|
||||
str := ""
|
||||
|
||||
hideEmpty := Config.UBool("wtf.mods.opsgenie.hideEmpty", false)
|
||||
displayEmpty := Config.UBool("wtf.mods.opsgenie.displayEmpty", true)
|
||||
|
||||
for _, data := range onCallResponse.OnCallData {
|
||||
if (len(data.Recipients) == 0) && (hideEmpty == true) {
|
||||
if (len(data.Recipients) == 0) && (displayEmpty == false) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user