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 = [
|
const options = [
|
||||||
{
|
{
|
||||||
label: t("Document"),
|
label: t("Document"),
|
||||||
value: "Document",
|
value: ".docx",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t("Spreadsheet"),
|
label: t("Spreadsheet"),
|
||||||
value: "Spreadsheet",
|
value: ".xlsx",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: t("Presentation"),
|
label: t("Presentation"),
|
||||||
value: "Presentation",
|
value: ".pptx",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -789,11 +789,11 @@ export async function getNewFiles(folderId: number) {
|
|||||||
// TODO: update res type
|
// TODO: update res type
|
||||||
export async function convertFile(
|
export async function convertFile(
|
||||||
fileId: string | number | null,
|
fileId: string | number | null,
|
||||||
format = null,
|
outputType = null,
|
||||||
password = null,
|
password = null,
|
||||||
sync = false,
|
sync = false,
|
||||||
) {
|
) {
|
||||||
const data = { password, sync, format };
|
const data = { password, sync, outputType };
|
||||||
|
|
||||||
const res = (await request({
|
const res = (await request({
|
||||||
method: "put",
|
method: "put",
|
||||||
|
Loading…
Reference in New Issue
Block a user