Web: Client: Sdk: Fixed file selector mode, fixed button label and default filter type

This commit is contained in:
Ilya Oleshko 2023-07-13 15:09:08 +03:00
parent 46390d1e30
commit 568155823a
3 changed files with 7 additions and 1 deletions

View File

@ -244,6 +244,8 @@ class SelectFileDialog extends React.Component {
const buttonName = creationButtonPrimary
? t("Common:Create")
: embedded
? t("Common:SelectFile")
: t("Common:SaveButton");
const name = dialogName ? dialogName : t("Common:SelectFile");

View File

@ -145,7 +145,10 @@ const Sdk = ({
isPanelVisible={true}
onSelectFile={onSelectFile}
onClose={onClose}
filteredType="roomsOnly"
filteredType={
frameConfig?.filter.selectorTypes ||
"exceptPrivacyTrashArchiveFolders"
}
withSubfolders={false}
displayType="aside"
embedded={true}

View File

@ -25,6 +25,7 @@
sortby: "DateAndTime", //TODO: ["DateAndTime", "AZ", "Type", "Size", "DateAndTimeCreation", "Author"]
search: "",
withSubfolders: true,
selectorTypes: "exceptPrivacyTrashArchiveFolders", //TODO: ["roomOnly", "exceptPrivacyTrashArchiveFolders", "exceptSortedByTagsFolders"]
},
keysForReload: [
"src",