Skip to content

Commit

Permalink
[stable16] Let text app handle new file creation (#164)
Browse files Browse the repository at this point in the history
[stable16] Let text app handle new file creation
  • Loading branch information
skjnldsv committed Jun 24, 2019
2 parents 99aedc1 + f3692ed commit 6846d32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/newfileplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ export const newFileMenuPlugin = {
attach: function (menu) {
var fileList = menu.fileList;

// Make text app handle new file creation if enabled
if (typeof OCA.Text !== 'undefined') {
return;
}

// only attach to main file list, public view is not supported yet
if (fileList.id !== 'files') {
return;
Expand Down

0 comments on commit 6846d32

Please sign in to comment.