Skip to content

Commit

Permalink
Merge pull request #1075 from ORCID/remove-cookie-service
Browse files Browse the repository at this point in the history
Remove cookie service
  • Loading branch information
bobcaprice authored Jan 2, 2024
2 parents 685a356 + f064181 commit 46f4187
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 deletions.
21 changes: 0 additions & 21 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"@ng-bootstrap/ng-bootstrap": "^15.1.1",
"bootstrap": "^5.3.2",
"moment": "^2.29.4",
"ngx-cookie-service": "^16.1.0",
"ngx-webstorage": "^12.0.0",
"rxjs": "~7.5.0",
"tslib": "^2.3.0",
Expand Down
6 changes: 3 additions & 3 deletions ui/src/app/account/service/account.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { HttpClient, HttpHeaders, HttpResponse } from '@angular/common/http'
import { BehaviorSubject, EMPTY, Observable, Subject, catchError, map, of, takeUntil, tap } from 'rxjs'

import { IAccount } from '../model/account.model'
import { CookieService } from 'ngx-cookie-service'
// import { CookieService } from 'ngx-cookie-service'
// TODO: uncomment when memberservice is added or change the account service so that this logic is absent from the account service
//import { MSMemberService } from 'app/entities/member/member.service';

Expand All @@ -21,7 +21,7 @@ export class AccountService {
// TODO: uncomment when language service is implemented
//private languageService: JhiLanguageService,
private sessionStorage: SessionStorageService,
private cookieService: CookieService,
//private cookieService: CookieService,
private http: HttpClient // TODO: uncomment when memberservice is added or change the account service so that this logic is absent from the account service //private memberService: MSMemberService
) {}

Expand Down Expand Up @@ -50,7 +50,7 @@ export class AccountService {
this.authenticated = true
const account: IAccount = response.body
if (account.langKey) {
this.cookieService.set('locale', account.langKey)
// this.cookieService.set('locale', account.langKey)
}
this.accountData.next(account)

Expand Down

0 comments on commit 46f4187

Please sign in to comment.