Merge branch 'master' of https://gitlab.com/epic-tech/explorer2.epic.tech-angular8
This commit is contained in:
commit
162daea341
@ -2,6 +2,8 @@ import { Component, OnInit, Inject, AfterViewInit } from '@angular/core';
|
|||||||
import { DOCUMENT } from '@angular/common';
|
import { DOCUMENT } from '@angular/common';
|
||||||
import { Utils } from 'src/app/shared/utils';
|
import { Utils } from 'src/app/shared/utils';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
|
import { Title } from '@angular/platform-browser';
|
||||||
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'epic-explorer-home-worksapce',
|
selector: 'epic-explorer-home-worksapce',
|
||||||
@ -46,7 +48,7 @@ export class HomeWorksapceComponent extends Utils
|
|||||||
implements OnInit, AfterViewInit {
|
implements OnInit, AfterViewInit {
|
||||||
viewchartvar: boolean;
|
viewchartvar: boolean;
|
||||||
constructor(@Inject(DOCUMENT) public document: Document,
|
constructor(@Inject(DOCUMENT) public document: Document,
|
||||||
private router: Router) {
|
private router: Router,private route: ActivatedRoute,private titleService: Title) {
|
||||||
super(document);
|
super(document);
|
||||||
if (this.router.url == '/all') {
|
if (this.router.url == '/all') {
|
||||||
this.viewchartvar = false;
|
this.viewchartvar = false;
|
||||||
@ -55,7 +57,10 @@ export class HomeWorksapceComponent extends Utils
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {}
|
ngOnInit() {
|
||||||
|
this.titleService.setTitle(
|
||||||
|
this.route.snapshot.data.title,
|
||||||
|
);}
|
||||||
|
|
||||||
viewchartenable() {
|
viewchartenable() {
|
||||||
this.viewchartvar = false;
|
this.viewchartvar = false;
|
||||||
|
@ -7,6 +7,9 @@ const viewRoutes: Routes = [
|
|||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
loadChildren: './home/home.module#HomeModule',
|
loadChildren: './home/home.module#HomeModule',
|
||||||
|
data: {
|
||||||
|
title: 'Epic Explorer - Home',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'all',
|
path: 'all',
|
||||||
@ -21,6 +24,9 @@ const siteRoutes: Routes = [
|
|||||||
{
|
{
|
||||||
path: 'blockdetail/:hash',
|
path: 'blockdetail/:hash',
|
||||||
loadChildren: './block-view/block-view.module#BlockViewModule',
|
loadChildren: './block-view/block-view.module#BlockViewModule',
|
||||||
|
data: {
|
||||||
|
title: 'Epic Explorer - Block',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'chart',
|
path: 'chart',
|
||||||
|
Loading…
Reference in New Issue
Block a user