fixed url input middle display to reflect no selected channel

This commit is contained in:
bill bittner 2018-01-24 12:02:40 -08:00
parent 39a1308080
commit 04754920df
7 changed files with 14 additions and 12 deletions
react/components/PublishUrlMiddleDisplay

View file

@ -1,9 +1,9 @@
import React from 'react';
import PropTypes from 'prop-types';
function UrlMiddle ({publishInChannel, loggedInChannelName, loggedInChannelShortId}) {
function UrlMiddle ({publishInChannel, selectedChannel, loggedInChannelName, loggedInChannelShortId}) {
if (publishInChannel) {
if (loggedInChannelName) {
if (selectedChannel === loggedInChannelName) {
return <span id="url-channel" className="url-text--secondary">{loggedInChannelName}:{loggedInChannelShortId} /</span>;
}
return <span id="url-channel-placeholder" className="url-text--secondary tooltip">@channel<span