mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Correct not displaying the "stats free trial" toast message if
stats are disabled.
This commit is contained in:
parent
ed403f7869
commit
a6f90fc7ee
@ -69,7 +69,6 @@ pub async fn version_check() -> Json<String> {
|
|||||||
pub enum StatsCheckResponse {
|
pub enum StatsCheckResponse {
|
||||||
DoNothing,
|
DoNothing,
|
||||||
NotSetup,
|
NotSetup,
|
||||||
Disabled,
|
|
||||||
GoodToGo,
|
GoodToGo,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -90,7 +89,7 @@ pub async fn stats_check() -> Json<StatsCheckAction> {
|
|||||||
if let Ok(cfg) = load_config() {
|
if let Ok(cfg) = load_config() {
|
||||||
if !cfg.long_term_stats.gather_stats {
|
if !cfg.long_term_stats.gather_stats {
|
||||||
response = StatsCheckAction {
|
response = StatsCheckAction {
|
||||||
action: StatsCheckResponse::Disabled,
|
action: StatsCheckResponse::NotSetup,
|
||||||
node_id: cfg.node_id.to_string(),
|
node_id: cfg.node_id.to_string(),
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user