Web: Client: Dialogs: ConvertDialog. the values ​​for conversion have been changed

This commit is contained in:
Elyor Djalilov 2024-07-19 17:45:43 +05:00
parent 0728dd4ee3
commit bb31e9a89d
2 changed files with 5 additions and 5 deletions

View File

@ -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",
},
];

View File

@ -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",