Merge pull request #15057 from nextcloud/bugfix/noid/silent-view-change
Use slient option to switch for regular file actions as well
This commit is contained in:
commit
ef72609940
|
@ -672,7 +672,7 @@
|
||||||
actionHandler: function (filename, context) {
|
actionHandler: function (filename, context) {
|
||||||
var dir = context.$file.attr('data-path') || context.fileList.getCurrentDirectory();
|
var dir = context.$file.attr('data-path') || context.fileList.getCurrentDirectory();
|
||||||
if (OCA.Files.App && OCA.Files.App.getActiveView() !== 'files') {
|
if (OCA.Files.App && OCA.Files.App.getActiveView() !== 'files') {
|
||||||
OCA.Files.App.setActiveView('files');
|
OCA.Files.App.setActiveView('files', {silent: true});
|
||||||
OCA.Files.App.fileList.changeDirectory(OC.joinPaths(dir, filename), true, true);
|
OCA.Files.App.fileList.changeDirectory(OC.joinPaths(dir, filename), true, true);
|
||||||
} else {
|
} else {
|
||||||
context.fileList.changeDirectory(OC.joinPaths(dir, filename), true, false, parseInt(context.$file.attr('data-id'), 10));
|
context.fileList.changeDirectory(OC.joinPaths(dir, filename), true, false, parseInt(context.$file.attr('data-id'), 10));
|
||||||
|
|
Loading…
Reference in New Issue