diff options
| author | beccabroek <rebecca.shaw@ibm.com> | 2018-07-24 15:36:33 -0500 |
|---|---|---|
| committer | Gunnar Mills <gmills@us.ibm.com> | 2018-07-27 20:52:07 +0000 |
| commit | bfc99907f62e32427ddc3c4135239b56298cd865 (patch) | |
| tree | 0df13ad2f48a0dda2ecd783eb138d7ea02a23e08 /app/common/services | |
| parent | c93b03c2dc30408e9b414aba006c3121aa6e245b (diff) | |
| download | phosphor-webui-bfc99907f62e32427ddc3c4135239b56298cd865.tar.gz phosphor-webui-bfc99907f62e32427ddc3c4135239b56298cd865.zip | |
Add Last Reboot Time
Added last reboot date and time to Reboot BMC Page.
Resolves openbmc/openbmc#2956
Tested: Rebooted and verified the date and time were correct.
Change-Id: I81cf46f0ad7f4e910cd6645de9830d2952091770
Signed-off-by: beccabroek <rebecca.shaw@ibm.com>
Diffstat (limited to 'app/common/services')
| -rw-r--r-- | app/common/services/api-utils.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/common/services/api-utils.js b/app/common/services/api-utils.js index 2ac6110..cfdd39f 100644 --- a/app/common/services/api-utils.js +++ b/app/common/services/api-utils.js @@ -532,6 +532,21 @@ window.angular && (function(angular) { } }); }, + getLastRebootTime: function() { + return $http({ + method: 'GET', + url: DataService.getHost() + + '/xyz/openbmc_project/state/bmc0/attr/LastRebootTime', + headers: { + 'Accept': 'application/json', + 'Content-Type': 'application/json' + }, + withCredentials: true + }) + .then(function(response) { + return response.data; + }); + }, hostPowerOn: function() { var deferred = $q.defer(); $http({ @@ -1462,5 +1477,4 @@ window.angular && (function(angular) { return SERVICE; } ]); - })(window.angular); |

