mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +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
|
||||
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…
Add table
Add a link
Reference in a new issue