Merge pull request #28879 from nextcloud/backport/28872/stable21

[stable21] Fix files view change and undefined currentFileList
This commit is contained in:
MichaIng 2021-09-18 02:01:17 +02:00 committed by GitHub
commit 05067c52f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@
actionHandler: function (fileName, context) {
var fileModel = context.fileInfoModel;
OC.Apps.hideAppSidebar($('.detailsView'));
OCA.Files.App.setActiveView('files', {silent: true});
OCA.Files.App.setActiveView('files');
OCA.Files.App.fileList.changeDirectory(fileModel.get('path'), true, true).then(function() {
OCA.Files.App.fileList.scrollTo(fileModel.get('name'));
});