Skip to content

Commit 0722c52

Browse files
authored
Merge pull request #102 from filecoin-project/custom-issue-comments-labels
Custom issue comments labels
2 parents 1f92097 + b2a75c9 commit 0722c52

File tree

3 files changed

+274
-57
lines changed

3 files changed

+274
-57
lines changed

fplus-lib/src/core/application/lifecycle.rs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ use super::file::{AppState, LifeCycle};
55
impl AppState {
66
pub fn as_str(&self) -> &str {
77
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",
8+
AppState::Submitted => "validated",
9+
AppState::ReadyToSign => "ready to sign",
10+
AppState::StartSignDatacap => "start sign datacap",
11+
AppState::Granted => "granted",
12+
AppState::TotalDatacapReached => "total datacap reached",
13+
AppState::Error => "error",
1414
}
1515
}
1616
}
@@ -64,6 +64,11 @@ impl LifeCycle {
6464
res
6565
}
6666

67+
pub fn get_active_status(&self) -> bool {
68+
let res = self.is_active.clone();
69+
res
70+
}
71+
6772
pub fn start_refill_request(&self, request_id: String) -> Self {
6873
LifeCycle {
6974
state: AppState::ReadyToSign,

0 commit comments

Comments
 (0)