Fix code style

pull/32/head
Florian Hartwich 2018-03-29 17:14:45 +02:00
parent f8db29408f
commit d3779de03f
1 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import {LoginService} from './services/app-user-service/login-service';
import {PromotionService} from './services/army-management/promotion.service';
import {AwardingService} from './services/army-management/awarding.service';
import {RouteConfig} from './app.config';
import {DOCUMENT} from "@angular/common";
import {DOCUMENT} from '@angular/common';
declare function require(url: string);
@ -38,13 +38,13 @@ export class AppComponent implements OnInit {
this.loading = false;
// scroll to top on route from army overview to user detail and back
if (router.url.includes('overview')) {
this.scrollToTop()
this.scrollToTop();
}
}
});
}
@HostListener("window:scroll", [])
@HostListener('window:scroll', [])
onWindowScroll() {
this.scrollTopVisible = document.body.scrollTop > this.scrollBtnVisibleVal
|| document.documentElement.scrollTop > this.scrollBtnVisibleVal;