summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/js/shareSpec.js
Commit message (Collapse)AuthorAgeFilesLines
* Adjust unit tests to new OCA.SidebarJohn Molakvoæ (skjnldsv)2019-10-291-207/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add link icon for public link tooJohn Molakvoæ (skjnldsv)2019-03-211-5/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Use grid view in other file views tooJan-Christoph Borchardt2018-10-181-3/+3
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Add room shares to DAV and recent files "share-types" propertyDaniel Calviño Sánchez2018-08-081-0/+20
| | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix constructor spy in unit test with Sinon 4.1.3Daniel Calviño Sánchez2017-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When a constructor is spied using Sinon it is wrapped by a proxy function, which calls the original constructor when invoked. When "new Foo()" is executed a "Foo" object is created, "Foo" is invoked with the object as "this", and the object is returned as the result of the whole "new" expression. Before Sinon 4.1.3 the proxy called the original constructor directly using the "thisValue" of the spied call; "thisValue" was the object created by the "new" operator that called the proxy. The proxy assigned "thisValue" to "returnValue", so it was also the value returned by the proxy and, in turn, the value returned by the whole "new" expression. Since Sinon 4.1.3 (see pull request 1626) the proxy calls the original constructor using "new" instead of directly. The "thisValue" created by the outermost "new" (the one that called the proxy) is no longer used by the original constructor; the internal "new" creates a new object, which is the one passed to the original constructor and returned by the internal "new" expression. This object is also the value returned by the proxy ("returnValue") and, in turn, the value returned by the whole outermost "new" expression. Thus, now "returnValue" should be used instead of "thisValue" to get the object created by the spied constructor. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* rip out obsolete recipientsDisplayNameArthur Schiwon2017-11-231-55/+2
| | | | | | also needs tests adjustements, and this also brings in natural sorting Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust tests and apply sortingArthur Schiwon2017-11-231-9/+23
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* adjust more js unit testsArthur Schiwon2017-11-021-6/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix share indicator handlingVincent Petry2017-04-261-0/+78
| | | | | Properly update the fileInfoModel with the updated share types, which also updates the file list row indicator properly
* Fix AdBlock blocking share icon, ref #866Jan-Christoph Borchardt2017-04-121-10/+10
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Fix displaying owner before share icon in file listVincent Petry2016-03-301-1/+1
| | | | Initial display of owner was missing
* Add webdav property for share info in PROPFIND responseVincent Petry2016-03-171-21/+12
|
* Make file actions use icon CSS classesRoeland Jago Douma2016-02-251-13/+18
| | | | This makes theming of file actions possible
* Still show share link when recipient but no share permissionVincent Petry2015-09-281-10/+3
| | | | | | | | This makes it possible for the recipient to still trigger the sidebar and share tab to see information about the share. In the case where the file is not shared and no permissions exists, no action icon will be displayed.
* Update JS unit tests for share dialog (WIP)Vincent Petry2015-09-161-68/+57
|
* fix unit testsMorris Jobke2015-08-261-8/+8
|
* Inline actions using default renderer are now always permanentVincent Petry2015-08-101-3/+3
| | | | | | | | Default renderer like the favorite icon can decide whether to use the permanent class or not. Fixed sharing code to properly update the icon according to sharing state modifications.
* Fix unit testsRoeland Jago Douma2015-07-091-1/+1
|
* Do not show static share owner if not availableVincent Petry2015-07-021-0/+17
| | | | | | | In some corner cases, an outgoing share exists but sharing is not allowed for the current user. This would cause the file list to break because the static text could not be rendered as the owner was undefined.
* Disable JS plugin for sharing in public modeVincent Petry2015-01-261-1/+25
| | | | | This removes the logic that registers the share action and modifies the rows. Share actions aren't needed in the public file list.
* Merge pull request #12795 from owncloud/files-layoutchangesMorris Jobke2014-12-131-6/+6
|\ | | | | Move file thumbnail element into the label tag
| * Move file thumbnail into the label elementVincent Petry2014-12-111-6/+6
| |
* | Remove obsoleted filelist prototype backup in testsVincent Petry2014-12-041-6/+0
| |
* | Simple Plugin system for JavascriptVincent Petry2014-12-011-1/+1
|/
* reduce share action text to the user name onlyThomas Müller2014-07-141-4/+4
|
* Use fileActionsReady to re-render sharing iconsVincent Petry2014-07-011-0/+8
| | | | | | | | | Whenever file actions are modified, either by registering new actions or when appending a new page of entries, the sharing app is now notified so it can correctly refresh the sharing icon status. Additionally, the core's loadIcons() method is also used to load the existing shares and also refresh the sharing icons afterwards.
* Sync file list with file actionsVincent Petry2014-06-271-0/+2
| | | | | | | | | | | | | | Whenever file actions are registered later, now the file lists are automatically notified. Added FileActions.addUpdateListener() to be able to receive such notifications. This removes the need for apps to manually call FileActions.display() after registering new actions. This fixes issues with race conditions when file actions are registered after the file list was already rendered.
* Use recipient display names when updating shares in the UIVincent Petry2014-06-041-21/+27
| | | | | | | | | | | Since OC.Share didn't have any array containing the list of shares for the current file, OC.Share.currentShares has been introduced to contain the full share item structure instead of the reduced one OC.Share.itemShares. The event "sharesChanged" is now passing OC.Share.currentShares, which itself includes the display name to be displayed for the recipients in the action icon.
* Multiple fixes to sharing overviewVincent Petry2014-06-031-9/+105
| | | | | - scrolling to next page now correctly renders share icons - reshareing/unsharing a reshare will now still keep "Shared by" label
* More unit tests and fixes for shareVincent Petry2014-06-021-22/+157
|
* Added unit tests for share.js and share iconVincent Petry2014-06-021-0/+213