Always show trash

This commit is contained in:
Benoit Schweblin 2018-03-18 15:52:33 +00:00
parent c0adf31801
commit 78c547777e
2 changed files with 2 additions and 4 deletions

View File

@ -230,7 +230,7 @@ $item-font-size: 14px;
.explorer-node__item-editor--folder, .explorer-node__item-editor--folder,
.explorer-node__new-child--folder { .explorer-node__new-child--folder {
&::before { &::before {
content: ''; content: '';
position: absolute; position: absolute;
margin-left: -13px; margin-left: -13px;

View File

@ -129,9 +129,7 @@ export default {
tempFolderNode.files.forEach((node) => { tempFolderNode.files.forEach((node) => {
node.noDrop = true; node.noDrop = true;
}); });
if (trashFolderNode.files.length) { rootNode.folders.unshift(trashFolderNode);
rootNode.folders.unshift(trashFolderNode);
}
// Add a fake file at the end of the root folder to allow drag and drop into it // Add a fake file at the end of the root folder to allow drag and drop into it
rootNode.files.push(fakeFileNode); rootNode.files.push(fakeFileNode);