+ client: add prefix to the service icons

This commit is contained in:
Ildar Kamalov 2019-08-05 11:42:39 +03:00 committed by Simon Zolin
parent 92cebd5b31
commit 0c46a70d9a
4 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@ class ClientsTable extends Component {
<div className="logs__row logs__row--icons"> <div className="logs__row logs__row--icons">
{value && value.length > 0 ? value.map(service => ( {value && value.length > 0 ? value.map(service => (
<svg className="service__icon service__icon--table" title={service} key={service}> <svg className="service__icon service__icon--table" title={service} key={service}>
<use xlinkHref={`#${service}`} /> <use xlinkHref={`#service_${service}`} />
</svg> </svg>
)) : ''} )) : ''}
</div> </div>

View File

@ -180,7 +180,7 @@ let Form = (props) => {
{SERVICES.map(service => ( {SERVICES.map(service => (
<Field <Field
key={service.id} key={service.id}
icon={service.id} icon={`service_${service.id}`}
name={`blocked_services.${service.id}`} name={`blocked_services.${service.id}`}
type="checkbox" type="checkbox"
component={renderServiceField} component={renderServiceField}

View File

@ -47,7 +47,7 @@ const Form = (props) => {
{SERVICES.map(service => ( {SERVICES.map(service => (
<Field <Field
key={service.id} key={service.id}
icon={service.id} icon={`service_${service.id}`}
name={`blocked_services.${service.id}`} name={`blocked_services.${service.id}`}
type="checkbox" type="checkbox"
component={renderServiceField} component={renderServiceField}

Binary file not shown.