Indicate that the share owner is remote in the filelist

remotes/origin/create-share-target-reuse
Joas Schilling 12 years ago
parent 956de27e94
commit 3f8e850dc6
  1. 3
      core/js/share.js
  2. 6
      core/js/tests/specs/shareSpec.js

@ -203,6 +203,9 @@ OC.Share={
tooltip += '@' + userDomain;
}
if (server) {
if (!userDomain) {
userDomain = '…';
}
tooltip += '@' + server;
}

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

Loading…
Cancel
Save