Skip to content

Commit

Permalink
feat(node): scaffold search
Browse files Browse the repository at this point in the history
  • Loading branch information
bitjson committed Feb 11, 2019
1 parent 6ed6fcb commit 0d19ada
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
17 changes: 12 additions & 5 deletions packages/insight/src/app/home/home.page.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
<ion-header no-border>
<ion-toolbar>
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
<ion-back-button></ion-back-button>
</ion-buttons>
<ion-title>{{ (config.currentChain$ | async).name }}</ion-title>
<ng-container *ngIf="(config.currentChain$ | async) as currentChain">
<ion-buttons slot="start">
<ion-menu-button></ion-menu-button>
<ion-back-button></ion-back-button>
</ion-buttons>
<ion-title>{{ currentChain.name }}</ion-title>
<ion-buttons slot="end">
<ion-button [routerLink]="['/' + currentChain.code + '/search/']">
<ion-icon slot="icon-only" name="search"></ion-icon>
</ion-button>
</ion-buttons>
</ng-container>
</ion-toolbar>
</ion-header>

Expand Down
5 changes: 5 additions & 0 deletions packages/insight/src/app/services/network/network.service.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import { Injectable } from '@angular/core';
import { BehaviorSubject, fromEvent } from 'rxjs';

/**
* TODO: This currently only checks network connectivity. It should also notify
* the app if the connected bitcore-node starts failing (using
* `ApiService.bitcoreAvailable`).
*/
@Injectable({
providedIn: 'root'
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
displayAs="{{ displayValueCode }}"
></app-currency-value>
</span>
<!-- TODO: indicate if spent/unspent -->
</div>
<ng-container *ngIf="!summary">
<p>
Expand Down

0 comments on commit 0d19ada

Please sign in to comment.