Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config/app.settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ module.exports = function settings(prm = {}) {
// карты google не используем
use_google_geo: '',

// визуализация по приоритету для рабочих мест
visualization_priority: {
imposts: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20],
},

}, is_node && {
// авторизация couchdb
user_node: {
Expand Down
4 changes: 3 additions & 1 deletion src/components/Imposts/Imposts.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {item_props} from '../App/menu';
import Builder from '../Builder';
import Props from '../Props/Main';
import {decrypt} from '../Barcode/connect';
import settings from '../../../config/app.settings';

function styles(theme) {
return {
Expand Down Expand Up @@ -94,6 +95,7 @@ class Imposts extends React.Component {
render() {
const {classes} = this.props;
const iprops = item_props();
const {visualization_priority: {imposts}} = settings();
return <Grid container>
<Helmet title={iprops.text}>
<meta name="description" content={iprops.title} />
Expand All @@ -106,7 +108,7 @@ class Imposts extends React.Component {
/>
</Grid>
<Grid item sm={12} lg={4} className={classes.props}>
<Props {...this.state} show_spec={false}/>
<Props {...this.state} show_spec={(nom) => imposts.includes(nom.visualization.priority)}/>
</Grid>
</Grid>;
}
Expand Down