ngx-vector-components 0.0.10 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -349,7 +349,7 @@ class AuthService {
349
349
  }
350
350
  generateTokenGuid() {
351
351
  return this.http
352
- .post(`api/${this.baseUrl}/TemporaryAccessToken/generate`, {
352
+ .post(`${this.baseUrl}/TemporaryAccessToken/generate`, {
353
353
  RefreshToken: this.storageService.getRefreshToken(),
354
354
  })
355
355
  .pipe(map((response) => response?.accessToken || ''));
@@ -2383,6 +2383,28 @@ class MenuComponent {
2383
2383
  this.onFinishMenuOptionsConfig = new EventEmitter();
2384
2384
  this._opened = true;
2385
2385
  this.subscription = new Subscription();
2386
+ this.currentWindowWidth = 0;
2387
+ }
2388
+ set opened(opened) {
2389
+ this._opened = opened;
2390
+ this.menuService.menuOpened$.next(this.opened);
2391
+ }
2392
+ get opened() {
2393
+ return this._opened;
2394
+ }
2395
+ get hasFintechAdminPermission() {
2396
+ return this.profileService.hasFintechAdminPermission;
2397
+ }
2398
+ get hasMarketplaceAdminPermission() {
2399
+ return this.profileService.hasMarketplaceAdminPermission;
2400
+ }
2401
+ get hasAnyMarketplacePermission() {
2402
+ return this.profileService.hasAnyMarketplacePermission;
2403
+ }
2404
+ get hasAnyFintechPermission() {
2405
+ return this.profileService.hasAnyFintechPermission;
2406
+ }
2407
+ ngOnInit() {
2386
2408
  this.subscription.add(this.menuService.toggleMenu$.subscribe(() => {
2387
2409
  this.toggleMenu();
2388
2410
  }));
@@ -2421,30 +2443,11 @@ class MenuComponent {
2421
2443
  });
2422
2444
  }
2423
2445
  }
2424
- this.onFinishMenuOptionsConfig.emit(true);
2446
+ this.onFinishMenuOptionsConfig.emit(null);
2425
2447
  }
2426
2448
  }));
2427
2449
  this.currentWindowWidth = window.innerWidth;
2428
2450
  }
2429
- set opened(opened) {
2430
- this._opened = opened;
2431
- this.menuService.menuOpened$.next(this.opened);
2432
- }
2433
- get opened() {
2434
- return this._opened;
2435
- }
2436
- get hasFintechAdminPermission() {
2437
- return this.profileService.hasFintechAdminPermission;
2438
- }
2439
- get hasMarketplaceAdminPermission() {
2440
- return this.profileService.hasMarketplaceAdminPermission;
2441
- }
2442
- get hasAnyMarketplacePermission() {
2443
- return this.profileService.hasAnyMarketplacePermission;
2444
- }
2445
- get hasAnyFintechPermission() {
2446
- return this.profileService.hasAnyFintechPermission;
2447
- }
2448
2451
  onResize() {
2449
2452
  if (this.opened && this.currentWindowWidth !== window.innerWidth) {
2450
2453
  this.clearAndCloseMenu();