Web:Files:Filter: change sort data

This commit is contained in:
Timofey 2022-02-15 19:02:01 +08:00
parent 5714f2b774
commit d18fbd6950

View File

@ -292,20 +292,20 @@ const SectionFilterContent = ({
const getSortData = () => {
const commonOptions = [
{ key: "DateAndTime", label: t("ByLastModifiedDate"), default: true },
{ key: "DateAndTimeCreation", label: t("ByCreationDate"), default: true },
{ key: "AZ", label: t("ByTitle"), default: true },
{ key: "Type", label: t("Common:Type"), default: true },
{ key: "Size", label: t("Common:Size"), default: true },
{ key: "DateAndTimeCreation", label: t("ByCreationDate"), default: true },
{ key: "DateAndTime", label: t("ByLastModifiedDate"), default: true },
];
if (!personal)
commonOptions.push({
if (!personal) {
commonOptions.splice(1, 0, {
key: "Author",
label: t("ByAuthor"),
default: true,
});
}
return commonOptions;
};