-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(alert): adapt alert handling to upstream #836
Conversation
@@ -467,7 +439,7 @@ class RoutePageControlPanel extends React.Component { | |||
<FormattedMessage id="route-guide" defaultMessage="Route guide" /> | |||
</h1> | |||
</div> | |||
{isOnDemandTaxi && <CallAgencyWarning route={route} />} | |||
{route.type === 715 && <CallAgencyWarning route={route} />} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep isOnDemandTaxi
here to point out when this warning is displayed.
const isOnDemandTaxi = route.type === 715;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently application crashes with error:
TypeError: context.getStore(...).getCurrentTime(...).unix is not a function at eval (IndexPage.js:691:73)
Thanks, there were indeed some changes missing... |
f092457
to
401cc5d
Compare
This PR applies upstream changes regarding alerts handling and display.
Besides this, for TimeStore the upstream change to return the unix timestamp instead of moment has been ported.