From b634b69d1049621b8825396be572ece98ee828f7 Mon Sep 17 00:00:00 2001 From: Lukas Hirt Date: Fri, 20 Nov 2020 12:39:40 +0100 Subject: [PATCH] Bring back actions for spreadsheets and presentations --- onlyoffice/ui/src/app.js | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/onlyoffice/ui/src/app.js b/onlyoffice/ui/src/app.js index 87e5194c1c..5d1f02c8e2 100644 --- a/onlyoffice/ui/src/app.js +++ b/onlyoffice/ui/src/app.js @@ -13,9 +13,27 @@ const appInfo = { }, newFileMenu: { menuTitle($gettext) { - return $gettext('New Onlyoffice document') + return $gettext('New OnlyOFFICE document') } } + }, + { + extension: 'xlsx', + handler: function(config, filePath, fileId) { + window.open( + `${config.server}/apps/onlyoffice/${fileId}?filePath=${encodeURIComponent(filePath)}`, + '_blank' + ) + } + }, + { + extension: 'pptx', + handler: function(config, filePath, fileId) { + window.open( + `${config.server}/apps/onlyoffice/${fileId}?filePath=${encodeURIComponent(filePath)}`, + '_blank' + ) + } } ] }