Skip to content

Commit

Permalink
Merge pull request #13 from julianrojas87/dev
Browse files Browse the repository at this point in the history
Fix quiet route predicate + bigger ERA logo
  • Loading branch information
julianrojas87 authored Nov 25, 2020
2 parents 12c5e39 + 027a952 commit 12cf19e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/MainLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ class MainLayout extends Component {
<div style={eraLogoWrapper}><ERALogo src={eraLogoPath}></ERALogo></div>
<div style={sidebarHeader}>
<Icon icon="logo-analytics" size="lg" style={{ verticalAlign: 0 }} />
<span style={{ marginLeft: 12 }}>ERA Route Compatibility Check</span>
<span style={{ marginLeft: 12 }}>Route Compatibility Check</span>
</div>
</Sidenav.Header>

Expand Down
6 changes: 3 additions & 3 deletions src/styles/Styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export {
};

export const ERALogo = styled.img`
width: 80px;
height: 50px;
width: 115px;
height: 70px;
z-index: 9000;
`;

Expand Down Expand Up @@ -80,7 +80,7 @@ export const sideBar = {
export const sidebarHeader = {
padding: 18,
fontSize: 22,
height: 56,
height: 70,
background: '#004494',
color: ' #fff',
whiteSpace: 'nowrap',
Expand Down
2 changes: 1 addition & 1 deletion src/utils/NameSpaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const ERA = {
vehicleSeries: 'http://era.europa.eu/ns#vehicleSeries',
vehicleNumber: 'http://era.europa.eu/ns#vehicleNumber',
vehicleType: 'http://era.europa.eu/ns#vehicleType',
isQuiteRoute: 'http://era.europa.eu/ns#isQuiteRoute',
isQuietRoute: 'http://era.europa.eu/ns#isQuietRoute',
operationalRestriction: 'http://era.europa.eu/ns#operationalRestriction'
}

Expand Down
6 changes: 3 additions & 3 deletions src/utils/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,13 @@ function checkCompatibility(t, vehicle, store, includesVehicle) {
}

// Noise restrictions
const nrs = track['http://era.europa.eu/ns#isQuietRoute'] === 'true'
const nrs = track[ERA.isQuietRoute] === 'true'
&& vehicle[ERA.operationalRestriction] !== 'http://era.europa.eu/concepts/restrictions#2.7.7';
report[ERA.operationalRestriction] = {
predicates: [ERA.operationalRestriction, ERA.isQuiteRoute],
predicates: [ERA.operationalRestriction, ERA.isQuietRoute],
compatible: nrs,
values: {
track: track['http://era.europa.eu/ns#isQuietRoute'],
track: track[ERA.isQuietRoute],
vehicle: vehicle[ERA.operationalRestriction]
}
}
Expand Down

0 comments on commit 12cf19e

Please sign in to comment.