diff options
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index bef1599fc..9b699fafd 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -57,6 +57,7 @@ export class AppComponent implements OnInit { | |||
57 | } | 57 | } |
58 | 58 | ||
59 | toggleMenu () { | 59 | toggleMenu () { |
60 | window.scrollTo(0, 0) | ||
60 | this.isMenuDisplayed = !this.isMenuDisplayed | 61 | this.isMenuDisplayed = !this.isMenuDisplayed |
61 | } | 62 | } |
62 | 63 | ||
@@ -72,7 +73,7 @@ export class AppComponent implements OnInit { | |||
72 | Object.keys(colSizes).forEach(col => colSizes[col] = 12) | 73 | Object.keys(colSizes).forEach(col => colSizes[col] = 12) |
73 | } | 74 | } |
74 | 75 | ||
75 | const classes = [ 'main-col' ] | 76 | const classes = [] |
76 | Object.keys(colSizes).forEach(col => classes.push(`col-${col}-${colSizes[col]}`)) | 77 | Object.keys(colSizes).forEach(col => classes.push(`col-${col}-${colSizes[col]}`)) |
77 | 78 | ||
78 | return classes | 79 | return classes |