Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

Commit

Permalink
cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
fazanki committed Dec 11, 2018
1 parent 74e7bb0 commit 2cd49c1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
</ng-template>
</div>
<ng-template #noResults>
<!--TODO add this as external component when provided by UX guys-->
<div class="lds-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
</ng-template>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
position: relative;
width: 64px;
height: 64px;
//margin: 0 auto;
}
.lds-spinner div {
transform-origin: 32px 32px;
Expand All @@ -19,7 +18,7 @@
width: 5px;
height: 14px;
border-radius: 20%;
background: rgba(5, 12, 9, 0.95);
background: #0b0c0c;
}
.lds-spinner div:nth-child(1) {
transform: rotate(0deg);
Expand Down
12 changes: 2 additions & 10 deletions src/app/domain/components/search-result/search-result.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,12 @@ export class SearchResultComponent implements OnInit {
data$: Object;
error: string;

constructor(private caseService: CaseService, private route: ActivatedRoute , private redirectionService: RedirectionService) {
constructor(private caseService: CaseService) {
}

ngOnInit() {
this.data$ = this.caseService.search();
}

onSubmit() {
// this.caseService.getNewCase().subscribe(
// res => {
// this.redirectionService.redirect(`/?newCase=success`);
// }, () => {
// this.redirectionService.redirect(`/?newCase=failure`);
// }
// );
}
onSubmit() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ import {Component} from '@angular/core';
styleUrls: ['./dashboard.component.scss']
})
export class DashboardComponent {
constructor() {
}
constructor() {}
}
2 changes: 1 addition & 1 deletion src/app/routing/pages/view-case/view-case.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class ViewCaseComponent implements OnInit, OnDestroy {
}

ngOnInit() {
// TODO revisit this gain and perhaps find
// TODO revisit this when components initialisation bug is fixed
this.routerSubscription = this.router.events.subscribe((event: Event) => {
if (event instanceof NavigationEnd) {
this.setNavigationSections();
Expand Down

0 comments on commit 2cd49c1

Please sign in to comment.