u
This commit is contained in:
@@ -30,6 +30,7 @@ export default class VfsEditorPanel extends PureComponent {
|
||||
isUploading: s.isUploading,
|
||||
searchQuery: s.searchQuery,
|
||||
newFileDialogOpen: s.newFileDialogOpen,
|
||||
newFileDefaultFolder: s.newFileDefaultFolder,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -49,6 +50,7 @@ export default class VfsEditorPanel extends PureComponent {
|
||||
isUploading: state.isUploading,
|
||||
searchQuery: state.searchQuery,
|
||||
newFileDialogOpen: state.newFileDialogOpen,
|
||||
newFileDefaultFolder: state.newFileDefaultFolder,
|
||||
}));
|
||||
|
||||
if (this.state.files.length === 0 && !this.state.loadingFiles) {
|
||||
@@ -180,10 +182,12 @@ export default class VfsEditorPanel extends PureComponent {
|
||||
searchQuery={searchQuery}
|
||||
onSelectFile={(name) => vfsAutomat.actions.selectFile(name)}
|
||||
onRefresh={() => vfsAutomat.actions.loadFiles()}
|
||||
onOpenNewDialog={() => vfsAutomat.actions.setNewFileDialogOpen(true)}
|
||||
onOpenNewDialog={(parentDir) => vfsAutomat.actions.setNewFileDialogOpen(true, parentDir)}
|
||||
onSearchChange={(q) => vfsAutomat.actions.setSearchQuery(q)}
|
||||
onDownload={(name) => vfsAutomat.actions.downloadFile(name)}
|
||||
onDelete={(name) => vfsAutomat.actions.deleteFile(name)}
|
||||
onDelete={(name) => vfsAutomat.actions.deletePath(name)}
|
||||
onRename={(oldPath, newPath) => vfsAutomat.actions.renameFile(oldPath, newPath)}
|
||||
onMkdir={(dirPath) => vfsAutomat.actions.mkdir(dirPath)}
|
||||
onUpload={(filesToUpload) => vfsAutomat.actions.uploadFiles(filesToUpload)}
|
||||
onMentionInChat={this.handleMentionInChat}
|
||||
/>
|
||||
@@ -194,6 +198,7 @@ export default class VfsEditorPanel extends PureComponent {
|
||||
{/* New File Dialog */}
|
||||
<VfsNewFileDialog
|
||||
open={newFileDialogOpen}
|
||||
defaultFolder={this.state.newFileDefaultFolder}
|
||||
onClose={() => vfsAutomat.actions.setNewFileDialogOpen(false)}
|
||||
onCreate={(name) => vfsAutomat.actions.createFile(name)}
|
||||
isCreating={isSaving}
|
||||
|
||||
Reference in New Issue
Block a user