minor visual fixes
This commit is contained in:
+2
-1
@@ -728,7 +728,8 @@
|
|||||||
"drafty_image": "이미지",
|
"drafty_image": "이미지",
|
||||||
"menu_item_restore_topic": "복원",
|
"menu_item_restore_topic": "복원",
|
||||||
"badge_danger": "의심 많은",
|
"badge_danger": "의심 많은",
|
||||||
"badge_staff": "직원 관리하에"
|
"badge_staff": "직원 관리하에",
|
||||||
|
"badge_verified": "확인 됨"
|
||||||
},
|
},
|
||||||
"ro": {
|
"ro": {
|
||||||
"validate_credential_action": "confirmă",
|
"validate_credential_action": "confirmă",
|
||||||
|
|||||||
@@ -102,13 +102,15 @@ class SidepanelView extends React.Component {
|
|||||||
const {formatMessage} = this.props.intl;
|
const {formatMessage} = this.props.intl;
|
||||||
const view = this.props.state || (this.props.myUserId ? 'contacts' : 'login');
|
const view = this.props.state || (this.props.myUserId ? 'contacts' : 'login');
|
||||||
|
|
||||||
let title, avatar;
|
let title, avatar, badges;
|
||||||
if (view == 'contacts') {
|
if (view == 'contacts') {
|
||||||
title = this.props.title;
|
title = this.props.title;
|
||||||
avatar = this.props.avatar ? this.props.avatar : true;
|
avatar = this.props.avatar ? this.props.avatar : true;
|
||||||
|
badges = this.props.trustedBadges;
|
||||||
} else {
|
} else {
|
||||||
title = formatMessage(messages[view]);
|
title = formatMessage(messages[view]);
|
||||||
avatar = false;
|
avatar = false;
|
||||||
|
badges = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
let onCancel;
|
let onCancel;
|
||||||
@@ -122,7 +124,7 @@ class SidepanelView extends React.Component {
|
|||||||
state={view}
|
state={view}
|
||||||
title={title}
|
title={title}
|
||||||
avatar={avatar}
|
avatar={avatar}
|
||||||
trustedBadges={this.props.trustedBadges}
|
trustedBadges={badges}
|
||||||
myUserId={this.props.myUserId}
|
myUserId={this.props.myUserId}
|
||||||
onSignUp={this.props.onSignUp}
|
onSignUp={this.props.onSignUp}
|
||||||
onSettings={this.props.onSettings}
|
onSettings={this.props.onSettings}
|
||||||
|
|||||||
@@ -10,9 +10,11 @@ import MenuStart from './menu-start.jsx';
|
|||||||
export default class SideNavbar extends React.PureComponent {
|
export default class SideNavbar extends React.PureComponent {
|
||||||
render() {
|
render() {
|
||||||
const icon_badges = [];
|
const icon_badges = [];
|
||||||
|
if (this.props.trustedBadges) {
|
||||||
this.props.trustedBadges.map((b) => {
|
this.props.trustedBadges.map((b) => {
|
||||||
icon_badges.push({icon: b, color: 'badge-inv'});
|
icon_badges.push({icon: b, color: 'badge-inv'});
|
||||||
});
|
});
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<div id="side-caption-panel" className="caption-panel">
|
<div id="side-caption-panel" className="caption-panel">
|
||||||
{this.props.onCancel ? <ButtonBack onBack={this.props.onCancel} /> : null}
|
{this.props.onCancel ? <ButtonBack onBack={this.props.onCancel} /> : null}
|
||||||
|
|||||||
Reference in New Issue
Block a user