Fixed channel selection.

This commit is contained in:
Martin Edenhofer 2016-02-08 08:30:38 +01:00
parent 52dc82bff9
commit f7652d7f6c
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ class Index extends App.Controller
else
params.notification_config[area[0]][area[1]][area[2]] = {
email: true
online: false
online: true
}
if !params.notification_config.group_ids || _.isEmpty(params.notification_config.group_ids)
params.notification_config.group_ids = ['-']

View file

@ -22,7 +22,7 @@
<td><input type="checkbox" name="matrix.<%= key %>.criteria.owned_by_nobody" value="true" <% if value.criteria.owned_by_nobody: %>checked<% end %>/></td>
<td><input type="checkbox" name="matrix.<%= key %>.criteria.no" value="true" <% if value.criteria.no: %>checked<% end %>/></td>
<td><input type="radio" name="matrix.<%= key %>.channel" value="email" <% if value.channel.email: %>checked<% end %>/></td>
<td><input type="radio" name="matrix.<%= key %>.channel" value="online" <% if value.channel.online: %>checked<% end %>/></td>
<td><input type="radio" name="matrix.<%= key %>.channel" value="online" <% if !value.channel.email && value.channel.online: %>checked<% end %>/></td>
</tr>
<% end %>
<% end %>