summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-03-23 08:37:37 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-04-06 14:49:31 +0200
commit0b4da6117fff4d999cb492503a8b6fc04eb75f9d (patch)
treed13df5d3ab7ae4e104e08e708a6f1527976d7488 /apps/files/js
parent0db210a0922cc32c924d196f7d38778912547fc1 (diff)
downloadnextcloud-server-0b4da6117fff4d999cb492503a8b6fc04eb75f9d.tar.gz
nextcloud-server-0b4da6117fff4d999cb492503a8b6fc04eb75f9d.zip
feat(files): actions api
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/app.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files/js/app.js b/apps/files/js/app.js
index 36afd9a80b7..8ebd506c1a3 100644
--- a/apps/files/js/app.js
+++ b/apps/files/js/app.js
@@ -144,6 +144,8 @@
}
window._nc_event_bus.emit('files:legacy-view:initialized', this);
+
+ this.navigation = OCP.Files.Navigation
},
/**
@@ -224,7 +226,8 @@
* @return view id
*/
getActiveView: function() {
- return this.navigation.active
+ return this.navigation
+ && this.navigation.active
&& this.navigation.active.id;
},