Closed CottageCabbage closed 2 years ago
Relevant: https://github.com/CottageCabbage/vu-dooit/commit/8e85ac20350a7e0cd0358629c1b6e15a80b06e24
I assumed that if a property didn't exist, it would return null and the switch () would get that, but it doesn't seem so?
switch ()
It should be easy enough making so that tasks always get the priority property when they're created, but this should be a nice failsafe?
Also, the priority classes rn are literally just {background: red} & {background: green}. It's kinda ugly. Fix that later.
{background: red}
{background: green}
Just remembered that switch () had a default thing. Use that probably?
Relevant: https://github.com/CottageCabbage/vu-dooit/commit/8e85ac20350a7e0cd0358629c1b6e15a80b06e24
I assumed that if a property didn't exist, it would return null and the
switch ()
would get that, but it doesn't seem so?It should be easy enough making so that tasks always get the priority property when they're created, but this should be a nice failsafe?
Also, the priority classes rn are literally just
{background: red}
&{background: green}
. It's kinda ugly. Fix that later.