TF-1915 Update state action of sending email item
(cherry picked from commit b23e3389432ec4e385da0d08b79f1727405f0503)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user