]> source.dussan.org Git - nextcloud-server.git/commitdiff
never show '/' as path for conflicting file names 6847/head
authorRobin Appelman <robin@icewind.nl>
Wed, 18 Oct 2017 13:16:51 +0000 (15:16 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 7 Nov 2017 14:54:11 +0000 (15:54 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files/js/filelist.js

index 857865c711109e8a68115a0cd85bcc46b651bdaf..bdd4a6ffc375ca5210813a9c17b8b624082f0eeb 100644 (file)
                                        if (firstConflictPath.charAt(0) === '/') {
                                                firstConflictPath = firstConflictPath.substr(1);
                                        }
-                                       $firstConflict.find('td.filename span.innernametext').prepend($('<span></span>').addClass('conflict-path').text(firstConflictPath));
+                                       if (firstConflictPath && firstConflictPath !== '/') {
+                                               $firstConflict.find('td.filename span.innernametext').prepend($('<span></span>').addClass('conflict-path').text(firstConflictPath));
+                                       }
                                }
 
                                var conflictPath = path + '/';