mirror of https://github.com/docker/docs.git
Display no logs message when there is no logs.
This commit is contained in:
parent
b10f2996e7
commit
0cb0a7c588
|
@ -52,6 +52,9 @@ var ContainerHomeLogs = React.createClass({
|
|||
var logs = this.state.logs.map(function (l, i) {
|
||||
return <p key={i} dangerouslySetInnerHTML={{__html: l}}></p>;
|
||||
});
|
||||
if (logs.length === 0) {
|
||||
logs = "No logs for this container.";
|
||||
}
|
||||
return (
|
||||
<div className="mini-logs wrapper">
|
||||
<h4>Logs</h4>
|
||||
|
|
|
@ -45,6 +45,9 @@ var ContainerLogs = React.createClass({
|
|||
var logs = this.state.logs.map(function (l, i) {
|
||||
return <p key={i} dangerouslySetInnerHTML={{__html: l}}></p>;
|
||||
});
|
||||
if (logs.length === 0) {
|
||||
logs = "No logs for this container.";
|
||||
}
|
||||
return (
|
||||
<div className="details-panel details-logs logs">
|
||||
{logs}
|
||||
|
|
Loading…
Reference in New Issue