mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Check if OCA.Files.App is available before calling
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
acba430246
commit
07f8aee6fe
@ -671,7 +671,7 @@
|
||||
icon: '',
|
||||
actionHandler: function (filename, context) {
|
||||
var dir = context.$file.attr('data-path') || context.fileList.getCurrentDirectory();
|
||||
if (OCA.Files.App.getActiveView() !== 'files') {
|
||||
if (OCA.Files.App && OCA.Files.App.getActiveView() !== 'files') {
|
||||
OCA.Files.App.setActiveView('files');
|
||||
OCA.Files.App.fileList.changeDirectory(OC.joinPaths(dir, filename), true, true);
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user