Commit Graph

29 Commits (d790c27a19494346bc7293bee00026201f2910f0)

Author SHA1 Message Date
Morris Jobke d790c27a19
Reduce JSHint errors/warnings
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years ago
Christoph Wurst 2317d7bb49
Fix sinon.stub deprecation warnings
Calls to `sinon.stub(obj, 'meth', fn)` are deprecated and therefore
replaced by `sinon.stub(obj, 'meth).callsFake(fn)` as instructed by
the deprecation warning.

This makes the js unit testing output readable again.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
7 years ago
Morris Jobke 200a28255e
Always enable avatars
* we introduced this setting in the begining because our
  avatar support caused some performance issues, but we
  fixed them and should only provide one way how Nextcloud
  looks

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years ago
Vincent Petry 14256d631c
Use group display name in sharing API + UI 8 years ago
Morris Jobke e7a146bd62
fix tests
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Lukas Reschke d001dbd259
Adjust unit tests
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
8 years ago
Bjoern Schiessle d235c4833f
remove the 'shareapi_allow_mail_notification' setting
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
8 years ago
Bjoern Schiessle f556c58c22
remove 'send mail notification' option from sharing, replaced by send-by-mail feature
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
8 years ago
Thomas Müller 4d67429cf0
Use an icon to set the email instead of a button with string 8 years ago
Roeland Jago Douma e1fd86ccb6 Unlock sharee input field when sharing fails
Fixes #22441

When addShares fails (for whatever reason) we should unlock the sharee
input field so the user does not have to reload the page.
8 years ago
Roeland Jago Douma 92c131b481 Updated unit tests 8 years ago
Vincent Petry b063ddb05b Share dialog use OCS API 8 years ago
Roeland Jago Douma 6bd15856b2 Added js tests for the Sharee API usage 9 years ago
Roeland Jago Douma 49031e0744 Fix unit tests 9 years ago
Vincent Petry 6735005be0 Fix duplicate bogus share field when link sharing is not allowed
Whenever link share is not allowed, it was outputting a bogus sharing
field which name would conflict with the regular sharing field.

This fix makes sure that the bogus sharing field with "Resharing not
allowed" message only appears when triggered by removed share
permissions.
9 years ago
Phil Davis 89ab505c7b sharedialogviewSpec.js couple of text typos
I noticed a new typo in 15ef39d5b9 and looked for others while I am here.
9 years ago
Vincent Petry c64fb46fbf Fix share link focus on click
Clicking on the link share must focus and select it
9 years ago
Roeland Jago Douma 9071e756a1 Fix for broken ajax/share.php endpoint
Even more code mess :(
All tests pass again. But I'm really not happy with this endpoint.
9 years ago
Tom Needham e3ae453ee5 Fix line lengths in share dialog unit tests 9 years ago
Tom Needham 8a6d22d751 Add JS tests for share autocompletion handling 9 years ago
Tom Needham 2ca5b1aa1f Add test for remote share info tooltop 9 years ago
Vincent Petry 3af2ad0cd9 Fix DOM element ids in share dialog
- Rely on class names instead of global ids
- When global ids are needed for label+checkbox, append the view id
  (cid) to the element's id

This fixes the checkboxes when multiple sidebars exist in the DOM.
9 years ago
Roeland Jago Douma 08600a7ed5 Add unit tests for sending e-mail for link shares 9 years ago
Thomas Müller ea72d90617 Merge pull request #19553 from owncloud/properly_format_date_shareview
Use DD-MM-YYYY consistently in share sidebar
9 years ago
Roeland Jago Douma 8c459a895d Do not remove linkshare if there is none
If the password is enforced we can't create a link share right away but
just show the password field. Untoggling the link sharing should not try
to remove the share.

* Added unit test
9 years ago
Roeland Jago Douma 96deeca34d Use DD-MM-YYYY consistently in share sidebar
We used to display the response from the server. Which is in non ISO8601
format. Now this is weird since the datepickers shows us 'DD-MM-YYYY'
once a date is chosen.

Now use momentJS to properly format the date.

* Unit tests updated
9 years ago
Vincent Petry 02d68d0613 Removed obsolete tests 9 years ago
Vincent Petry 996639f4fb More unit tests for share dialog 9 years ago
Vincent Petry 886f1ed660 Update JS unit tests for share dialog (WIP) 9 years ago