ONLYOFFICE / onlyoffice-owncloud

The app which enables the users to edit office documents from ownCloud using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and to save back those changes to ownCloud
Apache License 2.0
297 stars 90 forks source link

Only register action if mimetype is set to default #344

Closed AlexAndBear closed 2 years ago

AlexAndBear commented 3 years ago

Description

Since ownCloud 10.7.0 a new context menu for opening files has been introduced https://github.com/owncloud/core/pull/38132. So if you click on a file that mime-type has more than one linked action, a dropdown menu will pop up and you have to choose an app, no matter if the action is default or common action. This is based on the fact, that most apps register their action as a default action, and besides ONLYOFFICE, most apps, don't provide a setting which action should be default or not.

With this PR it is possible to link a mime-type which should be handled by ONLYOFFICE in general. So for example, an admin has files_pdfviewer and onlyoffice-owncloud on an instance running, the admin can wether check the 'pdf' in onlyoffice-owncloud setting, which will result in opening the app choose the dropdown menu, or uncheck it, which will result in pdf will be opened in files_pdfviewer directly.

Fixes

https://github.com/owncloud/enterprise/issues/4634

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

LinneyS commented 2 years ago

Described #365 Reworked at owncloud/core#39541