1
0
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:
Chris Cummer
2018-05-15 11:31:50 -07:00
parent 397fcbca9a
commit a729b33ea9
2 changed files with 34 additions and 3 deletions

View File

@@ -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
}