TF-1915 Update state action of sending email item

(cherry picked from commit b23e3389432ec4e385da0d08b79f1727405f0503)
This commit is contained in:
dab246
2023-06-09 16:13:33 +07:00
committed by Dat Vu
parent 6aa87ff012
commit 3ed868c35d
9 changed files with 87 additions and 55 deletions
+14
View File
@@ -0,0 +1,14 @@
enum ButtonState {
enabled,
disabled;
double get opacity {
switch(this) {
case ButtonState.enabled:
return 1.0;
case ButtonState.disabled:
return 0.4;
}
}
}