enable status view for liquid and testnet

This commit is contained in:
softsimon
2020-07-02 20:51:55 +07:00
parent 2aca447f9e
commit f5260b72e5
2 changed files with 10 additions and 0 deletions

View File

@@ -219,6 +219,14 @@ const routes: Routes = [
path: 'status-view',
component: StatusViewComponent
},
{
path: 'liquid-status-view',
component: StatusViewComponent
},
{
path: 'testnet-status-view',
component: StatusViewComponent
},
{
path: '**',
redirectTo: ''

View File

@@ -54,6 +54,7 @@ export class StateService {
switch (url.split('/')[1]) {
case 'liquid':
case 'liquid-tv':
case 'liquid-status-view':
if (this.network !== 'liquid') {
this.network = 'liquid';
this.networkChanged$.next('liquid');
@@ -61,6 +62,7 @@ export class StateService {
return;
case 'testnet':
case 'testnet-tv':
case 'testnet-status-view':
if (this.network !== 'testnet') {
this.network = 'testnet';
this.networkChanged$.next('testnet');