Support custom types for uploaded files
This commit is contained in:
1 parent
556424d4d6
commit
f290ce696f
5 files changed
+79
-7
No files matched your search
@@ -121,12 +121,15 @@ function renderStagingDownload(task: StageTask): Children {
|
||||
if (productClass) productClass = decodeURIComponent(productClass);
|
||||
|
||||
const typesList = [
|
||||
"",
|
||||
"1 Firmware Upgrade Image",
|
||||
"2 Web Content",
|
||||
"3 Vendor Configuration File",
|
||||
"4 Tone File",
|
||||
"5 Ringer File",
|
||||
...new Set([
|
||||
"",
|
||||
"1 Firmware Upgrade Image",
|
||||
"2 Web Content",
|
||||
"3 Vendor Configuration File",
|
||||
"4 Tone File",
|
||||
"5 Ringer File",
|
||||
...files.value.map((f) => f["metadata.fileType"]).filter((f) => f),
|
||||
]),
|
||||
].map((t) =>
|
||||
m(
|
||||
"option",
|
||||
|
||||
Reference in new issue
Block a user