@@ -17,8 +17,6 @@ import { getTimeEntriesDataSource } from '../../store/entry.selectors';
17
17
import { DATE_FORMAT } from 'src/environments/environment' ;
18
18
import { Subscription , Observable } from 'rxjs' ;
19
19
import { FeatureManagerService } from './../../../shared/feature-toggles/feature-toggle-manager.service' ;
20
- import { AzureAdB2CService } from 'src/app/modules/login/services/azure.ad.b2c.service' ;
21
-
22
20
23
21
type Merged = TechnologyState & ProjectState & ActivityState ;
24
22
@@ -46,7 +44,6 @@ export class EntryFieldsComponent implements OnInit, OnDestroy {
46
44
private store : Store < Merged > ,
47
45
private actionsSubject$ : ActionsSubject ,
48
46
private toastrService : ToastrService ,
49
- private azureService : AzureAdB2CService ,
50
47
private featureManagerService : FeatureManagerService
51
48
) {
52
49
this . entryForm = this . formBuilder . group ( {
@@ -158,7 +155,6 @@ export class EntryFieldsComponent implements OnInit, OnDestroy {
158
155
}
159
156
this . entryForm . patchValue ( { start_date : newHourEntered } ) ;
160
157
if ( this . isFeatureToggleActive ) {
161
- this . newData . owner_id = this . getOwnerId ( ) ;
162
158
this . newData . update_last_entry_if_overlap = true ;
163
159
this . store . dispatch ( new entryActions . UpdateEntryRunning ( { ...this . newData , ...this . entryForm . value } ) ) ;
164
160
} else {
@@ -167,10 +163,6 @@ export class EntryFieldsComponent implements OnInit, OnDestroy {
167
163
this . showTimeInbuttons = false ;
168
164
}
169
165
170
- getOwnerId ( ) {
171
- return this . azureService . getUserId ( ) ;
172
- }
173
-
174
166
private getLastEntry ( ) {
175
167
const lastEntry$ = this . store . pipe ( select ( getTimeEntriesDataSource ) ) ;
176
168
lastEntry$ . subscribe ( ( entry ) => {
0 commit comments