mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-05 23:58:50 +00:00
fix: start/stop button style
This commit is contained in:
parent
8dbec90bce
commit
1f0dfbd694
1 changed files with 2 additions and 0 deletions
|
@ -201,6 +201,8 @@ impl SimpleComponent for MainView {
|
|||
#[track = "model.changed(Self::xrservice_active())"]
|
||||
set_class_active: ("suggested-action", !model.xrservice_active),
|
||||
#[track = "model.changed(Self::xrservice_active())"]
|
||||
set_class_active: ("destructive-action", model.xrservice_active),
|
||||
#[track = "model.changed(Self::xrservice_active())"]
|
||||
set_label: match model.xrservice_active {
|
||||
true => "Stop",
|
||||
false => "Start",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue