diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-06-12 12:22:09 +0300 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-06-24 17:53:04 +0300 |
commit | f3692eddb9d4f00f3515b1b9995d0ff44cf66712 (patch) | |
tree | 1097b8725b40306da484d051d1e6e9f55e985923 | |
parent | 99aedc1f181ec1ff4d8b84c810db3e4a603fdfe9 (diff) |
Let text app handle new file creation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r-- | js/newfileplugin.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/newfileplugin.js b/js/newfileplugin.js index 8c01b52..99d9377 100644 --- a/js/newfileplugin.js +++ b/js/newfileplugin.js @@ -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; |