Setup redirect from /mining/blocks to /blocks - Update router links
This commit is contained in:
parent
8db440f164
commit
ffcfa4a659
@ -34,6 +34,11 @@ let routes: Routes = [
|
|||||||
path: '',
|
path: '',
|
||||||
component: MasterPageComponent,
|
component: MasterPageComponent,
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
path: 'mining/blocks',
|
||||||
|
redirectTo: 'blocks',
|
||||||
|
pathMatch: 'full'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'tx/push',
|
path: 'tx/push',
|
||||||
component: PushTransactionComponent,
|
component: PushTransactionComponent,
|
||||||
@ -110,6 +115,11 @@ let routes: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'signet',
|
path: 'signet',
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
path: 'mining/blocks',
|
||||||
|
redirectTo: 'blocks',
|
||||||
|
pathMatch: 'full'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
pathMatch: 'full',
|
pathMatch: 'full',
|
||||||
@ -201,6 +211,11 @@ let routes: Routes = [
|
|||||||
path: '',
|
path: '',
|
||||||
component: MasterPageComponent,
|
component: MasterPageComponent,
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
path: 'mining/blocks',
|
||||||
|
redirectTo: 'blocks',
|
||||||
|
pathMatch: 'full'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: 'tx/push',
|
path: 'tx/push',
|
||||||
component: PushTransactionComponent,
|
component: PushTransactionComponent,
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<h5 class="card-title" i18n="dashboard.latest-blocks">Latest blocks</h5>
|
<h5 class="card-title" i18n="dashboard.latest-blocks">Latest blocks</h5>
|
||||||
<app-blocks-list [widget]=true></app-blocks-list>
|
<app-blocks-list [widget]=true></app-blocks-list>
|
||||||
<div><a [routerLink]="['/mining/blocks' | relativeUrl]" i18n="dashboard.view-more">View more »</a></div>
|
<div><a [routerLink]="['/blocks' | relativeUrl]" i18n="dashboard.view-more">View more »</a></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -136,7 +136,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class=""><a href="" [routerLink]="[(stateService.env.MINING_DASHBOARD ? '/mining/blocks' : '/blocks') | relativeUrl]" i18n="dashboard.view-more">View more »</a></div>
|
<div class=""><a href="" [routerLink]="['/blocks' | relativeUrl]" i18n="dashboard.view-more">View more »</a></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user