@if (historyResource.isLoading() && !stableResult()) { } @if (stableResult(); as result) {
@for (customAlert of result.customalertStatehistory; track customAlert; let idx = $index) { @if (idx === 0 || customAlert.stateDate !== result.customalertStatehistory[idx - 1].stateDate) { } }
{{ t('State') }} {{ t('State time') }} {{ t('Host') }} {{ t('Service') }} {{ t('User') }} {{ t('Comment') }} {{ t('Comment entry time') }}
{{ customAlert.stateDate }}
@switch (customAlert.state) { @case (0) { } @case (1) { } @case (2) { } @case (3) { } } {{ customAlert.stateTimeInHumanShort }} {{ customAlert.Hosts.name }} {{ customAlert.servicename }} @if (customAlert.full_name) { {{ customAlert.full_name }} } @if (customAlert.CustomalertComments.comment) { {{ customAlert.CustomalertComments.comment }} } {{ customAlert.CustomalertComments.entry_time }}
@if (result.customalertStatehistory.length === 0) { } @if (result.customalertStatehistory) {
} }