<my-menu></my-menu>
</div>
- <div class="main-col container-fluid" [ngClass]="getMainColClasses()">
+ <div class="main-col container-fluid" [ngClass]="{ expanded: isMenuDisplayed === false }">
<div class="main-row">
<router-outlet></router-outlet>
window.scrollTo(0, 0)
this.isMenuDisplayed = !this.isMenuDisplayed
}
-
- getMainColClasses () {
- // Take all width is the menu is not displayed
- if (this.isMenuDisplayed === false) return [ 'expanded' ]
-
- return []
- }
}
scope: 'upload',
username,
password
- }
+ }
const headers = new HttpHeaders().set('Content-Type', 'application/x-www-form-urlencoded')
return this.http.post<UserLogin>(AuthService.BASE_TOKEN_URL, objectToUrlEncoded(body), { headers })
// Try to cache a little bit window.innerWidth
let windowInnerWidth = window.innerWidth
-setInterval(() => windowInnerWidth = window.innerWidth, 500)
+// setInterval(() => windowInnerWidth = window.innerWidth, 500)
function isInSmallView () {
return windowInnerWidth < 600
export const environment = {
production: false,
hmr: true,
- apiUrl: 'http://192.168.1.42:9000'
+ apiUrl: 'http://localhost:9000'
}