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>
This commit is contained in:
Thomas P 2023-01-24 17:15:38 +01:00 committed by Thomas Payen
parent 0be897bdfe
commit 87887d7837

View file

@ -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);