Skip to content

Commit

Permalink
ui: do not show uml until path not selected
Browse files Browse the repository at this point in the history
  • Loading branch information
z7zmey committed Oct 16, 2017
1 parent 7fe4b79 commit 89c381b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/src/app/_component/uml/uml.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ export class UmlComponent implements OnInit {

ngOnInit() {
this.activatedRoute.paramMap.subscribe(params => {
this.apiService.getUml(params.get('path') || '')
if (params.get('path') !== null) {
this.apiService.getUml(params.get('path'))
.subscribe(
(response: Response) => {
if (response.status !== 200) {
Expand All @@ -104,6 +105,7 @@ export class UmlComponent implements OnInit {
this.showD3(response.json());
},
);
}
});


Expand Down

0 comments on commit 89c381b

Please sign in to comment.