2026-07-11 18:23:01 +07:00
|
|
|
use crate::app::state::rest::AppStateRest;
|
|
|
|
|
use crate::app::state::types::Overlay;
|
|
|
|
|
|
|
|
|
|
pub fn handle_workflow_dismiss(state: &mut AppStateRest) {
|
|
|
|
|
if state.misc.overlay == Overlay::Workflow {
|
|
|
|
|
state.misc.overlay = Overlay::None;
|
|
|
|
|
}
|
|
|
|
|
state.dirty = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub fn workflow_status(state: &AppStateRest) -> &str {
|
|
|
|
|
if state.misc.overlay == Overlay::Workflow {
|
|
|
|
|
"active"
|
|
|
|
|
} else {
|
|
|
|
|
"idle"
|
|
|
|
|
}
|
|
|
|
|
}
|