-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Feature/negative durations #5
Feature/negative durations #5
Conversation
@@ -56,6 +59,14 @@ | |||
</tr> | |||
|
|||
<tr> | |||
<td *ngIf="config.showNegative"> | |||
<input type="checkbox" id="dp-negative" [(ngModel)]="negative" #status [disabled]="disabled"> |
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.
why do we need this <input>
?
@@ -59,11 +59,47 @@ describe('DurationPickerComponent', () => { | |||
expect(component.generate()).toBe('P9MT10M'); | |||
}); | |||
|
|||
it('generate() should correctly generate the negative duration values', () => { |
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.
this test is failing for me
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.
Fixed!
@DerHahne Thanks a lot for your contribution! Please check my review comments |
Hi! We have a binding on a variable by clicking the negative/positive state button without input checkbox. For the failing unit test i forgot to add a variable which must be set to true. |
@DerHahne merged, thanks a lot! |
Thx @ShinDarth !!! :) |
Hi,
I implemented the feature request to enable negative time durations. The configuration is set to false by default.
This implementation is regarding to feature request #3