mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
connect mime status
This commit is contained in:
parent
e53a4cb247
commit
d752fe18fb
1 changed files with 3 additions and 3 deletions
|
|
@ -677,15 +677,15 @@ impl Page {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
_ => {
|
mime => {
|
||||||
// Define common data
|
// Define common data
|
||||||
let status = Status::Failure;
|
let status = Status::Failure;
|
||||||
let title = "Oops";
|
let title = "Oops";
|
||||||
let description = gformat!("Content type not supported");
|
let description = gformat!("Content type `{mime}` yet not supported!");
|
||||||
|
|
||||||
// Update widget
|
// Update widget
|
||||||
content
|
content
|
||||||
.to_status_failure()
|
.to_status_mime()
|
||||||
.set_title(title)
|
.set_title(title)
|
||||||
.set_description(Some(&description));
|
.set_description(Some(&description));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue