mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-01 21:13:09 +00:00
feat: Make the start clear
Have messaging to let user know of update complete/ failure
This commit is contained in:
committed by
Aiden McClelland
parent
2b2451d22f
commit
7fc4cb175c
@@ -213,9 +213,9 @@ pub enum NotificationSubtype {
|
||||
}
|
||||
impl NotificationSubtype {
|
||||
fn to_json(&self) -> serde_json::Value {
|
||||
match &self {
|
||||
&NotificationSubtype::General => serde_json::Value::Null,
|
||||
&NotificationSubtype::BackupReport {
|
||||
match self {
|
||||
NotificationSubtype::General => serde_json::Value::Null,
|
||||
NotificationSubtype::BackupReport {
|
||||
server_attempted,
|
||||
server_error,
|
||||
packages,
|
||||
@@ -241,9 +241,9 @@ impl NotificationSubtype {
|
||||
}
|
||||
}
|
||||
fn code(&self) -> u32 {
|
||||
match &self {
|
||||
&Self::General => 0,
|
||||
&Self::BackupReport {
|
||||
match self {
|
||||
Self::General => 0,
|
||||
Self::BackupReport {
|
||||
server_attempted: _,
|
||||
server_error: _,
|
||||
packages: _,
|
||||
|
||||
Reference in New Issue
Block a user