fix(files) Call .action of local element

When calling .action from the global page, newButton may conflict with other app-content which is similar to app-content-files

Signed-off-by: Thomas Payen <thomas.payen@i-carre.net>
pull/36331/head
Thomas P 2023-01-24 17:15:38 +07:00 committed by Thomas Payen
parent 0be897bdfe
commit 87887d7837
1 changed files with 1 additions and 1 deletions

@ -3859,7 +3859,7 @@
this._newFileMenu = new OCA.Files.NewFileMenu({
fileList: this
});
$('.actions').append(this._newFileMenu.$el);
this.$el.find('.files-controls .actions').append(this._newFileMenu.$el);
}
this._newFileMenu.showAt($target);