diff options
author | Loïc Hermann <loic.hermann@sciam.fr> | 2020-03-27 13:31:50 +0100 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-04-17 06:47:17 +0000 |
commit | 6c60b85a87ce17037437353108584116f56d9847 (patch) | |
tree | b3af8ece2614911bcbf6134003d723154d2bea51 /core/src | |
parent | a8809f079b47f30e9fff5a8b7ffb4a7229de22a3 (diff) | |
download | nextcloud-server-6c60b85a87ce17037437353108584116f56d9847.tar.gz nextcloud-server-6c60b85a87ce17037437353108584116f56d9847.zip |
Fix breadcrumb in move or copy file dialog
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/OC/dialogs.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js index bf6a92aef8b..37d8e0724f2 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -1218,8 +1218,12 @@ const Dialogs = { * fills the tree list with directories */ _fillSlug: function() { + var addButton = this.$dirTree.find('.actions.creatable').detach() this.$dirTree.empty() var self = this + + self.$dirTree.append(addButton) + var dir var path = this.$filePicker.data('path') var $template = $('<div data-dir="{dir}"><a>{name}</a></div>').addClass('crumb') @@ -1236,10 +1240,12 @@ const Dialogs = { })) }) } + $template.octemplate({ dir: '', name: '' // Ugly but works ;) }, { escapeFunction: null }).prependTo(this.$dirTree) + }, /** * handle selection made in the tree list |