-
Notifications
You must be signed in to change notification settings - Fork 34
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
Nested single day events always shown only with time #2122
Nested single day events always shown only with time #2122
Conversation
client/utils/events.ts
Outdated
@@ -1361,7 +1361,7 @@ const self = { | |||
canUpdateEventTime, | |||
canConvertToRecurringEvent, | |||
canUpdateEventRepetitions, | |||
isEventSameDay, | |||
isSameDay, |
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.
move it out of event utils since it's generic
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.
and put it in some helpers?
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.
yep
client/validators/events.ts
Outdated
@@ -7,6 +7,7 @@ import {gettext, eventUtils} from '../utils'; | |||
import * as selectors from '../selectors'; | |||
import {formProfile} from './profile'; | |||
import {PRIVILEGES, EVENTS, TO_BE_CONFIRMED_FIELD} from '../constants'; | |||
import {isSameDay} from 'helpers'; |
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.
use relative imports (starting with a dot)
c32497e
into
superdesk:feature/multiple-events-in-planning
STT-93
Front-end checklist
memo
orPureComponent
to define new React components (and updates existing usages in modified code segments)lodash.get
with optional chaining and nullish coalescing for modified code segmentssuperdeskApi
)superdesk-ui-framework
andsuperdeskApi
when possible instead of using ones defined in this repository.planningApi
where it is possible to usesuperdeskApi
planningApi
)