Browse Source

fix: remove a constant that is not found

pull/4995/head
mehmet-erim 6 years ago
parent
commit
dec9694549
  1. 2
      npm/ng-packs/package.json
  2. 8
      npm/ng-packs/packages/theme-basic/src/lib/components/nav-items/current-user.component.ts
  3. 2
      npm/ng-packs/packages/theme-shared/package.json

2
npm/ng-packs/package.json

@ -51,7 +51,7 @@
"@fortawesome/fontawesome-free": "^5.13.0", "@fortawesome/fontawesome-free": "^5.13.0",
"@ng-bootstrap/ng-bootstrap": "^6.1.0", "@ng-bootstrap/ng-bootstrap": "^6.1.0",
"@ngneat/spectator": "^5.11.0", "@ngneat/spectator": "^5.11.0",
"@ngx-validate/core": "^0.0.10", "@ngx-validate/core": "^0.0.11",
"@ngxs/devtools-plugin": "^3.6.2", "@ngxs/devtools-plugin": "^3.6.2",
"@ngxs/logger-plugin": "^3.6.2", "@ngxs/logger-plugin": "^3.6.2",
"@ngxs/router-plugin": "^3.6.2", "@ngxs/router-plugin": "^3.6.2",

8
npm/ng-packs/packages/theme-basic/src/lib/components/nav-items/current-user.component.ts

@ -1,5 +1,5 @@
import { ApplicationConfiguration, OAUTH_STRATEGY, ConfigState } from '@abp/ng.core'; import { ApplicationConfiguration, ConfigState, AuthService } from '@abp/ng.core';
import { Component, OnInit, Injector } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { Select } from '@ngxs/store'; import { Select } from '@ngxs/store';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
@ -55,12 +55,12 @@ export class CurrentUserComponent implements OnInit {
return window.innerWidth < 992; return window.innerWidth < 992;
} }
constructor(private injector: Injector, private router: Router) {} constructor(private authService: AuthService, private router: Router) {}
ngOnInit() {} ngOnInit() {}
logout() { logout() {
OAUTH_STRATEGY.LogOut(this.injector).subscribe(() => { this.authService.logout().subscribe(() => {
this.router.navigate(['/'], { state: { redirectUrl: this.router.url } }); this.router.navigate(['/'], { state: { redirectUrl: this.router.url } });
}); });
} }

2
npm/ng-packs/packages/theme-shared/package.json

@ -10,7 +10,7 @@
"@abp/ng.core": "~3.0.5", "@abp/ng.core": "~3.0.5",
"@fortawesome/fontawesome-free": "^5.13.1", "@fortawesome/fontawesome-free": "^5.13.1",
"@ng-bootstrap/ng-bootstrap": "^6.1.0", "@ng-bootstrap/ng-bootstrap": "^6.1.0",
"@ngx-validate/core": "^0.0.10", "@ngx-validate/core": "^0.0.11",
"@swimlane/ngx-datatable": "^17.0.0", "@swimlane/ngx-datatable": "^17.0.0",
"bootstrap": "^4.5.0", "bootstrap": "^4.5.0",
"chart.js": "^2.9.3", "chart.js": "^2.9.3",

Loading…
Cancel
Save