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

fixed date-time issue, created validation, wrote tests #868

Merged
merged 1 commit into from
Oct 13, 2015
Merged

fixed date-time issue, created validation, wrote tests #868

merged 1 commit into from
Oct 13, 2015

Conversation

djvoa12
Copy link
Contributor

@djvoa12 djvoa12 commented Oct 11, 2015

  • Fixes all date & time picker related bugs
  • Includes date validation (end-date cannot be on or earlier than start-date)
  • Includes time validation (end-time cannot be on or earlier than start-time)
  • validation error-messages to display via ember-flash-messages
  • Minor refactoring of offering-editor, offering-manager, etc.

@@ -1,23 +1,28 @@
import Ember from 'ember';
import DS from 'ember-data';
import moment from 'moment';
import { translationMacro as t } from "ember-i18n";
Copy link
Member

Choose a reason for hiding this comment

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

the translationmacro doesn't work for us right now because when we change language it doesn't change. This is fixed in the latest version, but that breaks some tests. You can update the package if you want and fix the broken tests, or you can just use a computed property which depends on 'i18n.locale' and then call this.get('i18n').t() to do the translation.

@saschaben
Copy link
Member

so close! still seeing the "if I don't take an action/make a change on a time value, it reverts to 12am on save" issue on offering edit. Appears to be fully resolved on offering creation.

@saschaben
Copy link
Member

This looks good to go.

@jrjohnson
Copy link
Member

👍

jrjohnson added a commit that referenced this pull request Oct 13, 2015
fixed date-time issue, created validation, wrote tests
@jrjohnson jrjohnson merged commit a0ebb76 into ilios:master Oct 13, 2015
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.

3 participants