Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import {EntryState} from '../../../time-clock/store/entry.reducer';
import * as moment from 'moment';
import { DateAdapter } from '@angular/material/core';



@Component({
selector: 'app-time-range-form',
templateUrl: './time-range-form.component.html',
Expand All @@ -29,8 +27,8 @@ export class TimeRangeFormComponent implements OnInit, OnChanges {
endDate: this.endDate
});
date.getFirstDayOfWeek = () => 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

needs a test


}

ngOnInit(): void {
this.setInitialDataOnScreen();
}
Expand All @@ -48,6 +46,7 @@ export class TimeRangeFormComponent implements OnInit, OnChanges {
});
this.onSubmit();
}

onSubmit() {
const endDate = moment(this.endDate.value).endOf('day');
const startDate = moment(this.startDate.value).startOf('day');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import * as moment from 'moment';
import { SimpleChange } from '@angular/core';
import { DateAdapter } from '@angular/material/core';

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove line break


describe('Reports Page', () => {
describe('TimeRangeFormComponent', () => {
let component: TimeRangeFormComponent;
Expand Down Expand Up @@ -56,7 +55,6 @@ describe('Reports Page', () => {
}).compileComponents();
store = TestBed.inject(MockStore);
date = TestBed.inject(DateAdapter);

}));

beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import * as moment from 'moment';
}
]
})

export class InputDateComponent implements ControlValueAccessor {
value: string;
isDisabled: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

export const environment = {
production: false,
timeTrackerApiUrl: 'https://0390-2800-4f0-546-4680-b5ef-416e-decc-9774.ngrok.io/api',
timeTrackerApiUrl: 'http://localhost:7071/api',
stackexchangeApiUrl: 'https://api.stackexchange.com',
};

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove line break

Expand Down