All files / src/app/components/event-rule event-rule.component.html

80% Statements 16/20
83.33% Branches 5/6
100% Functions 0/0
77.77% Lines 7/9

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 158x       16x   9x 9x 9x 8x     1x    
@if (error) {
  <app-error [error]="error"></app-error>
}
 
@if (eventRule!==undefined) {
  <div>
    <h1 class="title">{{eventRule.name}}</h1>
    <h2 class="subtitle is-5">event rule #{{eventRule.id.slice(16)}}</h2>
    <p>Number of events triggered:  {{eventRule.number_events}}</p>
    @if (eventRule.number_events!==undefined && eventRule.number_events>0) {
      <app-events [inputEventRuleId]="eventRuleId"></app-events>
    }
  </div>
}