mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-05-06 19:40:42 -05:00
Bring back actions for spreadsheets and presentations
This commit is contained in:
@@ -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'
|
||||
)
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user