Skip to content
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

Show Central version in modal #1099

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

Show Central version in modal #1099

wants to merge 7 commits into from

Conversation

matthew-white
Copy link
Member

@matthew-white matthew-white commented Dec 13, 2024

Closes getodk/central#849.

What has been done to verify that this works as intended?

I've tried it out locally. However, this is a draft PR, and I haven't added tests yet.

Why is this the best possible solution? Were any other approaches considered?

Once we're ready for code review, I'll add comments about individual lines.

Before submitting this PR, please make sure you have:

  • run npm run test and npm run lint and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code or assets from external sources are properly credited in comments or that everything is internally sourced

@matthew-white matthew-white self-assigned this Dec 14, 2024
src/components/navbar/help-dropdown.vue Show resolved Hide resolved
const result = typeof data === 'object' && data != null
? mergeDeepLeft(data, configDefaults)
: configDefaults;
result.currentDate = new Date(headers.get('date'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to keep currentDate somewhat current. May be later on we can update this variable (or move to a provide/inject) whenever there is any API response from the backend.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that idea! I think I could fit that in this PR pretty easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Show version information in modal
2 participants