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 {
|
||||
DoNothing,
|
||||
NotSetup,
|
||||
Disabled,
|
||||
GoodToGo,
|
||||
}
|
||||
|
||||
@ -90,7 +89,7 @@ pub async fn stats_check() -> Json<StatsCheckAction> {
|
||||
if let Ok(cfg) = load_config() {
|
||||
if !cfg.long_term_stats.gather_stats {
|
||||
response = StatsCheckAction {
|
||||
action: StatsCheckResponse::Disabled,
|
||||
action: StatsCheckResponse::NotSetup,
|
||||
node_id: cfg.node_id.to_string(),
|
||||
};
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user