diff --git a/html_source/angular.json b/html_source/angular.json index ab8733ac..93a668b8 100644 --- a/html_source/angular.json +++ b/html_source/angular.json @@ -11,8 +11,7 @@ "schematics": { "@schematics/angular:component": { "style": "scss", - "skipTests": true, - "standalone": true + "skipTests": true } }, "architect": { diff --git a/html_source/src/app/api/services/backend.service.ts b/html_source/src/app/api/services/backend.service.ts index 840b5d72..5192b92f 100644 --- a/html_source/src/app/api/services/backend.service.ts +++ b/html_source/src/app/api/services/backend.service.ts @@ -733,7 +733,7 @@ export class BackendService { } // Use for call rpc-api https://docs.zano.org/docs/build/rpc-api - call_rpc(params: ParamsCallRpc, callback?: (status: boolean, response_data: any) => void): void { + call_rpc(params: Partial, callback?: (status: boolean, response_data: any) => void): void { this.runCommand(Commands.call_rpc, params, callback); } diff --git a/html_source/src/app/app.component.ts b/html_source/src/app/app.component.ts index d9efeac8..cf21c1c7 100644 --- a/html_source/src/app/app.component.ts +++ b/html_source/src/app/app.component.ts @@ -13,6 +13,7 @@ import { takeUntil } from 'rxjs/operators'; import { paths, pathsChildrenAuth } from './pages/paths'; import { hasOwnProperty } from '@parts/functions/hasOwnProperty'; import { Dialog } from '@angular/cdk/dialog'; +import { ParamsCallRpc } from '@api/models/call_rpc.model'; @Component({ selector: 'app-root', @@ -710,6 +711,8 @@ export class AppComponent implements OnInit, OnDestroy { this.backendService.handleCurrentActionState(); this.getVersion(); + + this.getInfo(); }, error: error => { console.log(error); @@ -845,4 +848,20 @@ export class AppComponent implements OnInit, OnDestroy { }); }); } + + getInfo(): void { + const updateTime = 60 * 1000; + const getInfo = () => { + const params = { + jsonrpc: '2.0', + method: 'getinfo', + }; + + this.backendService.call_rpc(params, (status, response_data) => { + this.variablesService.info$.next(response_data.result); + }); + }; + getInfo(); + setInterval(getInfo, updateTime); + } } diff --git a/html_source/src/app/pages/wallet/tabs/assets/assets.component.ts b/html_source/src/app/pages/wallet/tabs/assets/assets.component.ts index 3700c207..278ddb1e 100644 --- a/html_source/src/app/pages/wallet/tabs/assets/assets.component.ts +++ b/html_source/src/app/pages/wallet/tabs/assets/assets.component.ts @@ -184,20 +184,22 @@ import { defaultImgSrc, zanoAssetInfo } from '@parts/data/assets'; -
  • - - - {{ 'Send' | translate }} - -
  • - - +
  • - - - {{ 'Swap' | translate }} + + + {{ 'Send' | translate }}
  • + + +
  • + + + {{ 'Swap' | translate }} + +
  • +
    diff --git a/html_source/src/app/pages/wallet/tabs/history/history.component.ts b/html_source/src/app/pages/wallet/tabs/history/history.component.ts index 09d276cb..6b3c3790 100644 --- a/html_source/src/app/pages/wallet/tabs/history/history.component.ts +++ b/html_source/src/app/pages/wallet/tabs/history/history.component.ts @@ -262,7 +262,7 @@ import { zanoAssetInfo } from '@parts/data/assets'; {{ 'HISTORY.HIDDEN' | translate }} diff --git a/html_source/src/app/pages/wallet/wallet/wallet.component.ts b/html_source/src/app/pages/wallet/wallet/wallet.component.ts index d32f57bc..e4cf589f 100644 --- a/html_source/src/app/pages/wallet/wallet/wallet.component.ts +++ b/html_source/src/app/pages/wallet/wallet/wallet.component.ts @@ -223,7 +223,7 @@ const objTabs: { [key in TabNameKeys]: Tab } = { {{ 'WALLET_DETAILS.WALLET_OPTIONS' | translate }} - +