FIX: Show eye-slash icon when able to mark a topic as Unlisted, and eye icon when able to mark it Listed

This commit is contained in:
cpradio 2016-06-05 07:03:24 -04:00
parent c6f5a52e17
commit 4a0ac2c339

View file

@ -144,7 +144,7 @@ export default createWidget('topic-admin-menu', {
const visible = topic.get('visible'); const visible = topic.get('visible');
buttons.push({ className: 'topic-admin-visible', buttons.push({ className: 'topic-admin-visible',
action: 'toggleVisibility', action: 'toggleVisibility',
icon: visible ? 'eye' : 'eye-slash', icon: visible ? 'eye-slash' : 'eye',
label: visible ? 'actions.invisible' : 'actions.visible' }); label: visible ? 'actions.invisible' : 'actions.visible' });
if (this.currentUser.get('staff')) { if (this.currentUser.get('staff')) {