Show pen icon if channel has a pending message, unless it's the active channel

This commit is contained in:
Richard Lewis 2019-11-26 22:27:11 +00:00
parent bbbaf128bb
commit eb0094618e
2 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,7 @@
channel.type,
{active: activeChannel && channel === activeChannel.channel},
{'parted-channel': channel.type === 'channel' && channel.state === 0},
{'has-draft': channel.pendingMessage},
]"
:aria-label="getAriaLabel()"
:title="getAriaLabel()"

View File

@ -324,6 +324,8 @@ kbd {
#sidebar .chan.special::before { content: "\f03a"; /* http://fontawesome.io/icon/list/ */ }
#sidebar .chan.has-draft:not(.active):not(.lobby)::before { content: "\f304"; /* https://fontawesome.com/icons/pen?style=solid */ }
#footer .connect::before { content: "\f067"; /* http://fontawesome.io/icon/plus/ */ }
#footer .settings::before { content: "\f013"; /* http://fontawesome.io/icon/cog/ */ }
#footer .help::before { content: "\f059"; /* http://fontawesome.io/icon/question/ */ }