mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
add optional download button for unknown mime types
This commit is contained in:
parent
549c3fd946
commit
f2dadee082
4 changed files with 39 additions and 12 deletions
|
|
@ -679,7 +679,10 @@ impl Page {
|
|||
},
|
||||
mime => {
|
||||
// Init children widget
|
||||
let status = content.to_status_mime(mime);
|
||||
let status = content.to_status_mime(
|
||||
mime,
|
||||
Some((tab_action.clone(), navigation.request.download()))
|
||||
);
|
||||
|
||||
// Update page meta
|
||||
meta.set_status(Status::Failure)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue