aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_pages/playground/playground.component.ts
diff options
context:
space:
mode:
authorDanijel Anđelković <adanijel99@gmail.com>2022-04-23 23:46:21 +0200
committerDanijel Anđelković <adanijel99@gmail.com>2022-04-23 23:46:21 +0200
commitb3f9842a4d0400b1267959ff328c47c4b5ca52be (patch)
tree66a61f9d331b8da3d45052962ebbeaeb2889bb7f /frontend/src/app/_pages/playground/playground.component.ts
parent036d29ecf68214704de77956a88cdb2af228f37b (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.ts10
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 {