web/DownloadButton: fallback if status isn't supported
This commit is contained in:
parent
9b4f593f87
commit
f93f3cd558
1 changed files with 8 additions and 0 deletions
|
@ -118,6 +118,14 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
changeDownloadButton("error");
|
||||||
|
restoreDownloadButton();
|
||||||
|
|
||||||
|
return createDialog({
|
||||||
|
...defaultErrorPopup as DialogInfo,
|
||||||
|
bodyText: "unknown/unsupported status"
|
||||||
|
})
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue