Web: Client: Dialogs: ConvertDialog. the values for conversion have been changed
This commit is contained in:
parent
0728dd4ee3
commit
bb31e9a89d
@ -61,15 +61,15 @@ const ConvertDialogComponent = (props) => {
|
||||
const options = [
|
||||
{
|
||||
label: t("Document"),
|
||||
value: "Document",
|
||||
value: ".docx",
|
||||
},
|
||||
{
|
||||
label: t("Spreadsheet"),
|
||||
value: "Spreadsheet",
|
||||
value: ".xlsx",
|
||||
},
|
||||
{
|
||||
label: t("Presentation"),
|
||||
value: "Presentation",
|
||||
value: ".pptx",
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -789,11 +789,11 @@ export async function getNewFiles(folderId: number) {
|
||||
// TODO: update res type
|
||||
export async function convertFile(
|
||||
fileId: string | number | null,
|
||||
format = null,
|
||||
outputType = null,
|
||||
password = null,
|
||||
sync = false,
|
||||
) {
|
||||
const data = { password, sync, format };
|
||||
const data = { password, sync, outputType };
|
||||
|
||||
const res = (await request({
|
||||
method: "put",
|
||||
|
Loading…
Reference in New Issue
Block a user