diff --git a/commands.js b/commands.js index 119c42d..688033b 100644 --- a/commands.js +++ b/commands.js @@ -44,7 +44,7 @@ function setUserHostMode(app, args, mode) { } function markServerBufferUnread(app) { - var activeBuffer = app.state.buffers.get(app.state.activeBuffer); + let activeBuffer = app.state.buffers.get(app.state.activeBuffer); if (!activeBuffer || activeBuffer.type === BufferType.SERVER) { return; } diff --git a/components/composer.js b/components/composer.js index a6d89a6..4528d43 100644 --- a/components/composer.js +++ b/components/composer.js @@ -83,8 +83,18 @@ export default class Composer extends Component { } render() { + let className = ""; + if (this.props.readOnly && !this.state.text) { + className = "read-only"; + } + return html` -