create a delete-my-data button
This commit is contained in:
@@ -10,6 +10,7 @@ pub(crate) enum MyMessage {
|
||||
NameChanged,
|
||||
FoundCam(String, i64),
|
||||
Error(String, String, String),
|
||||
DataDeleted,
|
||||
}
|
||||
|
||||
impl Page {
|
||||
@@ -97,6 +98,14 @@ impl Page {
|
||||
}
|
||||
}
|
||||
}
|
||||
MyMessage::DataDeleted => {
|
||||
div.flex {
|
||||
article class="succ msg" {
|
||||
header { (t!("data_deletion_success_title")) }
|
||||
(t!("data_deletion_success_body"))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
section { (content) }
|
||||
|
Reference in New Issue
Block a user