Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar Usov authored and Nazar Usov committed Nov 22, 2023
1 parent 858678b commit e3ce933
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 30 deletions.
5 changes: 2 additions & 3 deletions html_source/src/app/pages/pages.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ import {
IntToMoneyPipeModule,
IsAvailableAliasNamePipeModule,
MoneyToIntPipeModule,
SafeHtmlPipeModule,
ShortStringPipeModule,
SafeHtmlPipeModule, ShortStringPipe,
} from '@parts/pipes';
import { InputValidateModule } from '@parts/directives/input-validate';
import { InputDisableSelectionModule } from '@parts/directives/input-disable-selection';
Expand Down Expand Up @@ -86,7 +85,7 @@ import { BackButtonComponent } from '@parts/components/back-button/back-button.c
IsAvailableAliasNamePipeModule,
MoneyToIntPipeModule,
SafeHtmlPipeModule,
ShortStringPipeModule,
ShortStringPipe,
InputValidateModule,
InputDisableSelectionModule,
CheckboxComponent,
Expand Down
3 changes: 1 addition & 2 deletions html_source/src/app/pages/wallet/tabs/send/send.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { DeeplinkParams, defaultSendMoneyParams } from '@api/models/wallet.model
import { WrapInfo } from '@api/models/wrap-info';
import { WrapInfoService } from '@api/services/wrap-info.service';
import { SendMoneyParams } from '@api/models/send-money.model';
import { ControlsOf } from '@parts/utils/controls-of';
import { defaultImgSrc, zanoAssetInfo } from '@parts/data/assets';

@Component({
Expand Down Expand Up @@ -396,7 +395,7 @@ export class SendComponent implements OnInit, OnDestroy {

lowerCaseDisabled$ = new BehaviorSubject(true);

sendMoneyParamsForm = this.fb.group<ControlsOf<SendMoneyParams>>({
sendMoneyParamsForm = this.fb.group({
wallet_id: this.fb.control(undefined, {
validators: [Validators.required],
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ import { BreadcrumbsComponent } from '@parts/components/breadcrumbs/breadcrumbs.
import { BreadcrumbItems } from '@parts/components/breadcrumbs/breadcrumbs.models';
import { DefaultImgModule, InputValidateModule, LowerCaseDirective } from '@parts/directives';
import { AbstractControl, FormBuilder, FormControl, FormsModule, ReactiveFormsModule, ValidationErrors, Validators } from '@angular/forms';
import { IntToMoneyPipe, IntToMoneyPipeModule, MoneyToIntPipe, MoneyToIntPipeModule, ShortStringPipeModule } from '@parts/pipes';
import {
IntToMoneyPipe,
IntToMoneyPipeModule,
MoneyToIntPipe,
MoneyToIntPipeModule,
ShortStringPipe
} from '@parts/pipes';
import { NgSelectModule } from '@ng-select/ng-select';
import { VariablesService } from '@parts/services/variables.service';
import { Asset } from '@api/models/assets.model';
Expand Down Expand Up @@ -36,7 +42,7 @@ import { LoaderComponent } from '@parts/components/loader.component';
DefaultImgModule,
NgSelectModule,
LowerCaseDirective,
ShortStringPipeModule,
ShortStringPipe,
FormsModule,
IntToMoneyPipeModule,
MoneyToIntPipeModule,
Expand Down
5 changes: 2 additions & 3 deletions html_source/src/app/pages/wallet/wallet.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import {
ContractStatusMessagesPipeModule,
HistoryTypeMessagesPipeModule,
IntToMoneyPipeModule,
IsAvailableAliasNamePipeModule,
ShortStringPipeModule,
IsAvailableAliasNamePipeModule, ShortStringPipe,
} from '@parts/pipes';
import { TranslateModule } from '@ngx-translate/core';
import { ConfirmModalModule } from '@parts/modals/confirm-modal/confirm-modal.module';
Expand Down Expand Up @@ -55,7 +54,7 @@ import { GetAssetPipe } from '@parts/pipes/get-asset.pipe';
WalletRoutingModule,
FlexModule,
TooltipModule,
ShortStringPipeModule,
ShortStringPipe,
TranslateModule,
IsAvailableAliasNamePipeModule,
ConfirmModalModule,
Expand Down
2 changes: 1 addition & 1 deletion html_source/src/app/parts/pipes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export * from './int-to-money-pipe';
export * from './is-available-alias-name-pipe';
export * from './money-to-int-pipe';
export * from './safe-html-pipe';
export * from './short-string-pipe';
export * from './get-asset.pipe';
export * from './short-string.pipe';
2 changes: 0 additions & 2 deletions html_source/src/app/parts/pipes/short-string-pipe/index.ts

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Pipe, PipeTransform } from '@angular/core';

@Pipe({
name: 'zanoShortString',
standalone: true
})
export class ShortStringPipe implements PipeTransform {
transform(value: string | null | undefined, left = 6, right = 6): string | null | undefined {
Expand Down
2 changes: 1 addition & 1 deletion html_source/src/app/parts/services/wallets.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class WalletsService {
this.backendService.getWalletInfo(wallet_id, callback);
}

closeWallet(wallet_id): void {
closeWallet(wallet_id: number): void {
const callback = async (): Promise<void> => {
this.wallets = this.wallets.filter(w => w.wallet_id !== wallet_id);

Expand Down
5 changes: 0 additions & 5 deletions html_source/src/app/parts/utils/controls-of.ts

This file was deleted.

0 comments on commit e3ce933

Please sign in to comment.