diff options
author | Danijel Anđelković <adanijel99@gmail.com> | 2022-04-23 23:46:21 +0200 |
---|---|---|
committer | Danijel Anđelković <adanijel99@gmail.com> | 2022-04-23 23:46:21 +0200 |
commit | b3f9842a4d0400b1267959ff328c47c4b5ca52be (patch) | |
tree | 66a61f9d331b8da3d45052962ebbeaeb2889bb7f /frontend/src/app/_pages/playground/playground.component.ts | |
parent | 036d29ecf68214704de77956a88cdb2af228f37b (diff) |
Dodao hover za novi element tab u folderu, promenio input za kolicinu tacaka u pozadini da se odmah update-uje.
Diffstat (limited to 'frontend/src/app/_pages/playground/playground.component.ts')
-rw-r--r-- | frontend/src/app/_pages/playground/playground.component.ts | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/frontend/src/app/_pages/playground/playground.component.ts b/frontend/src/app/_pages/playground/playground.component.ts index f8ea8bb4..831132a4 100644 --- a/frontend/src/app/_pages/playground/playground.component.ts +++ b/frontend/src/app/_pages/playground/playground.component.ts @@ -1,4 +1,5 @@ import { Component, OnInit } from '@angular/core'; +import { MatSliderChange } from '@angular/material/slider'; import { CookieService } from 'ngx-cookie-service'; @Component({ @@ -13,10 +14,13 @@ export class PlaygroundComponent implements OnInit { constructor(private cookie: CookieService) { } - updateBGPrefs() { - this.cookie.set('animateBackground', "" + this.animateBackground); + updateFillPref(event: MatSliderChange) { + this.backgroundFill = event.value!; this.cookie.set('backgroundFill', "" + this.backgroundFill); - console.log(this.animateBackground, this.backgroundFill); + } + + updateAnimPref() { + this.cookie.set('animateBackground', "" + this.animateBackground); } ngOnInit(): void { |