Bladeren bron

Fix closing details view when viewing file in folder

The Files app active view is set to "files" in silent mode to avoid an
unneeded load of the "/" directory. However, this also prevents the
details view from being automatically closed, so it has to be explicitly
closed by the Goto plugin; the approach used is the same that would have
been used by OCA.Files.App._onNavigationChanged if not silenced.

Fixes #1448

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Daniel Calviño Sánchez 7 jaren geleden
bovenliggende
commit
18f46bd47f
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      apps/files/js/gotoplugin.js

+ 1 - 0
apps/files/js/gotoplugin.js

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