We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f92097 + b2a75c9 commit 0722c52Copy full SHA for 0722c52
fplus-lib/src/core/application/lifecycle.rs
@@ -5,12 +5,12 @@ use super::file::{AppState, LifeCycle};
5
impl AppState {
6
pub fn as_str(&self) -> &str {
7
match *self {
8
- AppState::Submitted => "Submitted",
9
- AppState::ReadyToSign => "Ready to Sign Datacap",
10
- AppState::StartSignDatacap => "Start Sign Datacap",
11
- AppState::Granted => "Granted",
12
- AppState::TotalDatacapReached => "Total Datacap Reached",
13
- AppState::Error => "Error",
+ AppState::Submitted => "validated",
+ AppState::ReadyToSign => "ready to sign",
+ AppState::StartSignDatacap => "start sign datacap",
+ AppState::Granted => "granted",
+ AppState::TotalDatacapReached => "total datacap reached",
+ AppState::Error => "error",
14
}
15
16
@@ -64,6 +64,11 @@ impl LifeCycle {
64
res
65
66
67
+ pub fn get_active_status(&self) -> bool {
68
+ let res = self.is_active.clone();
69
+ res
70
+ }
71
+
72
pub fn start_refill_request(&self, request_id: String) -> Self {
73
LifeCycle {
74
state: AppState::ReadyToSign,
0 commit comments