Web: Client: Sdk: Fixed file selector mode, fixed button label and default filter type
This commit is contained in:
parent
46390d1e30
commit
568155823a
@ -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");
|
||||
|
||||
|
@ -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}
|
||||
|
@ -25,6 +25,7 @@
|
||||
sortby: "DateAndTime", //TODO: ["DateAndTime", "AZ", "Type", "Size", "DateAndTimeCreation", "Author"]
|
||||
search: "",
|
||||
withSubfolders: true,
|
||||
selectorTypes: "exceptPrivacyTrashArchiveFolders", //TODO: ["roomOnly", "exceptPrivacyTrashArchiveFolders", "exceptSortedByTagsFolders"]
|
||||
},
|
||||
keysForReload: [
|
||||
"src",
|
||||
|
Loading…
Reference in New Issue
Block a user