update end-date in alarm history

Change-Id: Ib338fddcb7f64256e2714a89b342848905d2b48a
Closes-bug: #28765
This commit is contained in:
Noor Yameen 2019-01-14 10:13:49 +02:00
parent 0729eb5eec
commit ecf05d58bc
2 changed files with 3 additions and 0 deletions

View File

@ -73,6 +73,8 @@
};
if (alarmList.radioModel === 'historyAlarms') {
alarmList.toDateTime = new Date();
alarmList.toDateTime.setMilliseconds(0);
config.start = alarmList.fromDateTime;
config.end = alarmList.toDateTime;
}

View File

@ -12,6 +12,7 @@
<label class="btn btn-primary"
ng-model="alarmList.radioModel"
ng-click="alarmList.getHistoryData('')"
uib-btn-radio="'historyAlarms'">Alarm History</label>
</div>