Display app version for administrators
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-07-22 15:11:30 +02:00
parent 9bdce94487
commit 433572293b
2 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,7 @@ pub(crate) struct BaseSettingsPage {
pub app_name: &'static str,
pub is_admin: bool,
pub user_name: String,
pub version: &'static str,
}
impl BaseSettingsPage {
@ -29,6 +30,7 @@ impl BaseSettingsPage {
app_name: APP_NAME,
is_admin: user.admin,
user_name: user.username.to_string(),
version: env!("CARGO_PKG_VERSION"),
}
}
}