]> source.dussan.org Git - nextcloud-server.git/commitdiff
Indicate that the share owner is remote in the filelist
authorJoas Schilling <nickvergessen@gmx.de>
Tue, 27 Jan 2015 10:06:18 +0000 (11:06 +0100)
committerJoas Schilling <nickvergessen@gmx.de>
Tue, 27 Jan 2015 11:32:32 +0000 (12:32 +0100)
core/js/share.js
core/js/tests/specs/shareSpec.js

index 877ef4856a33f987e55037b779c20c1e0ffccd1c..b3533af4824f8be2623e39ae71f11a15cf1df295 100644 (file)
@@ -203,6 +203,9 @@ OC.Share={
                        tooltip += '@' + userDomain;
                }
                if (server) {
+                       if (!userDomain) {
+                               userDomain = '…';
+                       }
                        tooltip += '@' + server;
                }
 
index f45008954648d8f0646863edd99cfe69e0ff3b2e..7eb22261e1034ca44b7ade4a1302a6e174166d4b 100644 (file)
@@ -702,17 +702,17 @@ describe('OC.Share tests', function() {
                        it('displays the user name part of a remote share owner', function() {
                                checkOwner(
                                        'User One@someserver.com',
-                                       'User One',
+                                       'User One@…',
                                        'User One@someserver.com'
                                );
                                checkOwner(
                                        'User One@someserver.com/',
-                                       'User One',
+                                       'User One@…',
                                        'User One@someserver.com'
                                );
                                checkOwner(
                                        'User One@someserver.com/root/of/owncloud',
-                                       'User One',
+                                       'User One@…',
                                        'User One@someserver.com'
                                );
                        });