From 3706c9a61a2322b7dbe73f7b5ff8c5a170ed4da9 Mon Sep 17 00:00:00 2001 From: Spencer Ofwiti Date: Wed, 16 Jun 2021 12:16:24 +0300 Subject: [PATCH] Update docs. --- .../components/AccountDetailsComponent.html | 192 +++++++++++++----- docs/compodoc/coverage.html | 2 +- .../compodoc/injectables/LocationService.html | 4 +- .../interceptors/MockBackendInterceptor.html | 60 ++++-- docs/compodoc/js/search/search_index.js | 4 +- docs/compodoc/modules/AppModule.html | 76 +++---- .../modules/AppModule/dependencies.svg | 76 +++---- docs/compodoc/modules/PagesModule.html | 38 ++-- .../modules/PagesModule/dependencies.svg | 38 ++-- docs/compodoc/modules/SettingsModule.html | 46 ++--- .../modules/SettingsModule/dependencies.svg | 46 ++--- docs/compodoc/modules/SharedModule.html | 8 +- .../modules/SharedModule/dependencies.svg | 8 +- docs/compodoc/modules/TokensModule.html | 46 ++--- .../modules/TokensModule/dependencies.svg | 46 ++--- docs/compodoc/modules/TransactionsModule.html | 8 +- .../TransactionsModule/dependencies.svg | 8 +- docs/typedoc/assets/js/search.js | 2 +- ...ils_component.accountdetailscomponent.html | 68 +++++-- .../modules/app__helpers_mock_backend.html | 2 +- 20 files changed, 470 insertions(+), 308 deletions(-) diff --git a/docs/compodoc/components/AccountDetailsComponent.html b/docs/compodoc/components/AccountDetailsComponent.html index b3005e2..6f92731 100644 --- a/docs/compodoc/components/AccountDetailsComponent.html +++ b/docs/compodoc/components/AccountDetailsComponent.html @@ -154,9 +154,15 @@
  • accountTypes
  • +
  • + area +
  • areaNames
  • +
  • + areaType +
  • areaTypes
  • @@ -166,6 +172,9 @@
  • categories
  • +
  • + category +
  • genders
  • @@ -310,7 +319,7 @@ -
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:67
    +
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:70
    @@ -499,8 +508,8 @@ -
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:285
    +
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:293
    @@ -538,8 +547,8 @@ -
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:200
    +
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:208
    @@ -608,8 +617,8 @@ -
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:204
    +
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:212
    @@ -678,8 +687,8 @@ -
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:281
    +
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:289
    @@ -760,8 +769,8 @@ -
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:243
    +
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:251
    @@ -799,8 +808,8 @@ -
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:256
    +
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:264
    @@ -840,8 +849,8 @@ -
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:89
    +
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:92
    @@ -879,8 +888,8 @@ -
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:269
    +
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:277
    @@ -920,8 +929,8 @@ -
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:222
    +
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:230
    @@ -959,8 +968,8 @@ -
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:212
    +
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:220
    @@ -1025,8 +1034,8 @@ -
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:208
    +
    Defined in src/app/pages/accounts/account-details/account-details.component.ts:216
    @@ -1272,6 +1281,33 @@ + + + + + + + + + + + + + + +
    + + + + area + + +
    + Type : string + +
    + +
    @@ -1299,6 +1335,33 @@ + +
    + + + + + + + + + + + + +
    + + + + areaType + + +
    + Type : string + +
    + +
    @@ -1380,6 +1443,33 @@ + +
    + + + + + + + + + + + + +
    + + + + category + + +
    + Type : string + +
    + +
    @@ -2025,7 +2115,7 @@ @@ -2103,6 +2193,9 @@ export class AccountDetailsComponent implements OnInit { submitted: boolean = false; bloxbergLink: string; tokenSymbol: string; + category: string; + area: string; + areaType: string; constructor( private formBuilder: FormBuilder, @@ -2150,6 +2243,27 @@ export class AccountDetailsComponent implements OnInit { this.account = res; this.cdr.detectChanges(); this.loggingService.sendInfoLevelMessage(this.account); + this.locationService + .getAreaNameByLocation(this.account.location.area_name) + .pipe(first()) + .subscribe((response) => { + this.area = response; + this.cdr.detectChanges(); + this.locationService + .getAreaTypeByArea(this.area) + .pipe(first()) + .subscribe((result) => { + this.areaType = result; + this.cdr.detectChanges(); + }); + }); + this.userService + .getCategoryByProduct(this.account.products[0]) + .pipe(first()) + .subscribe((response) => { + this.category = response; + this.cdr.detectChanges(); + }); const fullName = this.account.vcard?.fn[0].value.split(' '); this.accountInfoForm.patchValue({ firstName: fullName[0].split(',')[0], @@ -2159,26 +2273,10 @@ export class AccountDetailsComponent implements OnInit { type: this.account.type, bio: this.account.products, gender: this.account.gender, - businessCategory: - this.account.category || - this.userService.getCategoryByProduct(this.account.products[0]), + businessCategory: this.account.category || this.category || 'other', userLocation: this.account.location.area_name, - location: - this.account.location.area || - this.locationService - .getAreaNameByLocation(this.account.location.area_name) - .pipe(first()) - .subscribe((response) => { - return response; - }), - locationType: - this.account.location.area_type || - this.locationService - .getAreaTypeByArea(this.accountInfoFormStub.location.value) - .pipe(first()) - .subscribe((response) => { - return response; - }), + location: this.account.location.area || this.area || 'other', + locationType: this.account.location.area_type || this.areaType || 'other', }); this.userService .getAccountStatus(this.account.vcard?.tel[0].value) @@ -2526,7 +2624,7 @@ export class AccountDetailsComponent implements OnInit { <mat-label> BUSINESS CATEGORY: </mat-label> <mat-select id="businessCategory" - [(value)]="account.category" + [(value)]="category" formControlName="businessCategory" [errorStateMatcher]="matcher" > @@ -2563,7 +2661,7 @@ export class AccountDetailsComponent implements OnInit { <mat-label> LOCATION: </mat-label> <mat-select id="location" - [(value)]="account.location.area" + [(value)]="area" formControlName="location" [errorStateMatcher]="matcher" > @@ -2582,7 +2680,7 @@ export class AccountDetailsComponent implements OnInit { <mat-label> LOCATION TYPE: </mat-label> <mat-select id="locationType" - [(value)]="account.location.area_type" + [(value)]="areaType" formControlName="locationType" [errorStateMatcher]="matcher" > @@ -2925,7 +3023,7 @@ export class AccountDetailsComponent implements OnInit {
    - +