mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10:08 +00:00
connect mime status
This commit is contained in:
parent
e53a4cb247
commit
d752fe18fb
@ -677,15 +677,15 @@ impl Page {
|
||||
}
|
||||
);
|
||||
},
|
||||
_ => {
|
||||
mime => {
|
||||
// Define common data
|
||||
let status = Status::Failure;
|
||||
let title = "Oops";
|
||||
let description = gformat!("Content type not supported");
|
||||
let description = gformat!("Content type `{mime}` yet not supported!");
|
||||
|
||||
// Update widget
|
||||
content
|
||||
.to_status_failure()
|
||||
.to_status_mime()
|
||||
.set_title(title)
|
||||
.set_description(Some(&description));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user