From 0cb0a7c5882f7a0bb7ae7674946925e0f90e9a86 Mon Sep 17 00:00:00 2001 From: Sean Li Date: Fri, 27 Mar 2015 11:00:14 -0700 Subject: [PATCH] Display no logs message when there is no logs. --- src/ContainerHomeLogs.react.js | 3 +++ src/ContainerLogs.react.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/ContainerHomeLogs.react.js b/src/ContainerHomeLogs.react.js index a13f310c3c..d400a48d72 100644 --- a/src/ContainerHomeLogs.react.js +++ b/src/ContainerHomeLogs.react.js @@ -52,6 +52,9 @@ var ContainerHomeLogs = React.createClass({ var logs = this.state.logs.map(function (l, i) { return

; }); + if (logs.length === 0) { + logs = "No logs for this container."; + } return (

Logs

diff --git a/src/ContainerLogs.react.js b/src/ContainerLogs.react.js index cdde86f4d2..e20910cc49 100644 --- a/src/ContainerLogs.react.js +++ b/src/ContainerLogs.react.js @@ -45,6 +45,9 @@ var ContainerLogs = React.createClass({ var logs = this.state.logs.map(function (l, i) { return

; }); + if (logs.length === 0) { + logs = "No logs for this container."; + } return (
{logs}