diff options
| author | Gunnar Mills <gmills@us.ibm.com> | 2018-09-06 16:47:01 -0500 |
|---|---|---|
| committer | Gunnar Mills <gmills@us.ibm.com> | 2018-09-10 16:36:34 +0000 |
| commit | a4ae7dba15e741ea66cb21fbd8fa1e4e2deab178 (patch) | |
| tree | 623788eb1ca467eca2befbf82896b17eb0bc89da /app/server-health | |
| parent | ff64c54a93aaf1ffb4df4b2d4c16c392d869f533 (diff) | |
| download | phosphor-webui-a4ae7dba15e741ea66cb21fbd8fa1e4e2deab178.tar.gz phosphor-webui-a4ae7dba15e741ea66cb21fbd8fa1e4e2deab178.zip | |
Fix '$scope.filteredLogs is undefined'
When loading the "Event log" page '$scope.filteredLogs is undefined'
is logged in the console.
https://github.com/openbmc/phosphor-webui/commit/1ca1d7e10ed0ef47206bb89f6dcc5778b1239519
moved the watch on the all logs checkbox to $scope.filteredLogs.
Add $scope.filteredLogs to the top of the file so it is not
undefined on page load.
Tested: No longer see the console message.
Change-Id: Ifa49b416db1a692fc16b3325cef26f59189855a8
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
Diffstat (limited to 'app/server-health')
| -rw-r--r-- | app/server-health/controllers/log-controller.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/server-health/controllers/log-controller.js b/app/server-health/controllers/log-controller.js index 88fac77..5e6db6d 100644 --- a/app/server-health/controllers/log-controller.js +++ b/app/server-health/controllers/log-controller.js @@ -24,6 +24,7 @@ window.angular && (function(angular) { $filter) { $scope.dataService = dataService; $scope.logs = []; + $scope.filteredLogs = []; $scope.tmz = 'EDT'; $scope.itemsPerPage = Constants.PAGINATION.LOG_ITEMS_PER_PAGE; $scope.loading = false; |

