Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
quick fix with localstorage info for visualize one
  • Loading branch information
rrc12004 committed Apr 3, 2019
1 parent bf13c98 commit 563d015
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/visualize-one/visualize-one.component.html
Expand Up @@ -12,7 +12,7 @@
Function: {{function$}}<br>
</p>
<div class="text-center">
<a class="btn btn-primary" style="color:white" routerLink="/statistics">Return to Statistics</a>
<a class="btn btn-primary" style="color:white" (click)="returnToStatistics()">Return to Statistics</a>
</div>
<br>
<form id="visToolbar">
Expand Down
5 changes: 5 additions & 0 deletions src/app/visualize-one/visualize-one.component.ts
Expand Up @@ -38,6 +38,11 @@ export class VisualizeOneComponent implements OnInit {
constructor(public data: DataService, public graphData: VisualizeService, public genData: GeneratorService,
private router: Router, private http: HttpClient) { }

returnToStatistics() {
this.router.navigateByUrl('/statistics');
localStorage.removeItem('data_type');
}

resetAndRemakeChart() {
const genVal = localStorage.getItem('gen_id');
const genCount = 1;
Expand Down

0 comments on commit 563d015

Please sign in to comment.