aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/sharedialogshareelistview.js
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup sharing leftoversJohn Molakvoæ (skjnldsv)2019-11-051-777/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Comply to eslintJohn Molakvoæ (skjnldsv)2019-10-011-349/+347
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Deprecate oc_current_user, fix usage and move currentUser to the bundleChristoph Wurst2019-05-081-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move OC.appswebroots to the bundle and deprecate oc_appswebrootsChristoph Wurst2019-05-071-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use property to check if a share entry is shared with the current userJulius Härtl2018-11-021-3/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove reshare owner entry from the share listJulius Härtl2018-11-021-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Show share settings for owner and reshare owners onlyJulius Härtl2018-11-021-0/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #11844 from nextcloud/multiple-link-sharesMorris Jobke2018-11-011-3/+6
|\ | | | | allow to create multiple link shares via share api
| * Fix note displayJohn Molakvoæ (skjnldsv)2018-11-011-3/+6
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Do not set indeterminate state for file sharesJulius Härtl2018-10-311-1/+3
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Extract translated strings of compiled handlebarsRoeland Jago Douma2018-10-051-1/+1
| | | | | | Follow up to #11615 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move OC.Share to compiled handlebarsRoeland Jago Douma2018-10-041-154/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add custom handling for room shares to the list of shareesDaniel Calviño Sánchez2018-08-081-1/+3
| | | | | | | | | | | | | Like done for other types of shares, room shares are now explicitly described as such in the UI. The avatar used is the image provided in the "shareWithAvatar" property of the share. If none is given then the avatar is the first letter of the display name of the room share with a coloured background seeded from the room token. If the display name of the room is empty then no letter is shown in the avatar; no special handling is done in that case. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Reword share comment featureRoeland Jago Douma2018-07-311-1/+1
| | | | | | Fixes #10403 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make possible to enable "sending password by Talk" from the share menuDaniel Calviño Sánchez2018-07-241-8/+99
| | | | | | | | | | | | | | | | | | Until now the password to be sent by mail was set by enabling a checkbox in the share menu and then entering the password in an input field shown below. Now, when Talk is enabled, another item is added to the share menu to do the same for a password to be sent by Talk. Sending the password by mail and sending it by Talk are mutually exclusive actions, so when one of the checkboxes is enabled the other one is automatically disabled. Note that the icon set for the field, "icon-passwordtalk", does not currently exist; it simply mimics the "icon-passwordmail" (which does not exist either) used for the field of the password protect by mail to get the right padding in the menu. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Don't use shorthand syntax for functionsJulius Härtl2018-07-211-4/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* No remote note and various fixesJohn Molakvoæ (skjnldsv)2018-07-211-0/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Public fixesJohn Molakvoæ (skjnldsv)2018-07-211-14/+23
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Public shareJohn Molakvoæ (skjnldsv)2018-07-211-11/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fix post urlBjoern Schiessle2018-07-211-3/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Autoresize + autoloaderJohn Molakvoæ (skjnldsv)2018-07-211-0/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Popovermenu migrationJohn Molakvoæ (skjnldsv)2018-07-211-3/+87
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* UI set share note!John Molakvoæ (skjnldsv)2018-07-211-0/+21
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #5280 from nextcloud/shared-with-display-nameMorris Jobke2018-07-131-3/+16
|\ | | | | sharedWithDisplayName & sharedWithAvatar
| * SharedWithDisplayName + SharedWithAvatarMaxence Lange2018-05-211-3/+16
| | | | | | | | | | Signed-off-by: Maxence Lange <maxence@nextcloud.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | start to get fed group shares into the share dialogBjoern Schiessle2018-07-111-1/+7
|/ | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Remove no longer needed escaping of special charactersDaniel Calviño Sánchez2018-04-181-3/+1
| | | | | | | | | | The escaping of special characters was needed when the ids of the permission checkboxes for shares were based on the "shareWith" field. Since they are based on the "shareId" field the escaping is no longer needed, as the "sharedId" is expected to always contain compatible characters. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Fix ids of permission checkboxes for sharesDaniel Calviño Sánchez2018-04-181-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | The ids of permission checkboxes for shares were generated using the "shareWith" field of the share. The "shareWith" field can contain spaces (as spaces are allowed, for example, in user or circle names), so this could cause the id attribute of the HTML element to contain spaces too, which is forbidden by the HTML specification. It is not just a "formal" issue, though; when the list was rendered, if the id contained a space the selector to get the checkbox element was wrong (as it ended being something like "#canEdit-view1-name with spaces") and thus the initial state of the checkbox was not properly set. Besides that, "shareWith" can contain too single quotes, which would even cause the jQuery selector to abort the search and leave the UI in an invalid state. Instead of adding more cases to the regular expression to escape special characters and apply it too when the ids are created now the ids of permission checkboxes for shares are based on the "shareId" field instead of on "shareWith", as "shareId" is expected to always contain compatible characters. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Use the display name in the avatar for a circle shareDaniel Calviño Sánchez2018-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | Before, the avatar for a circle share was generated using the "share_with" field as the seed for "imageplaceholder". Due to this, when the "share_with" field is set to the circle ID the character shown in the avatar was just a random character instead of the first character of the display name. Now the "share_with" is still used as the seed for the colour, but the display name is used as the text of the avatar. This adds support for "share_with" fields set to the circle ID while being backwards compatible with "share_with" fields set to the circle name. Note that when "share_with" fields is set to the circle name the colour of the avatar is different in the list of suggested sharees and in the list of current sharees, but that also happened before these changes (due to a different seed being used in each place). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Set autocomplete=new-password for mail share passwordRoeland Jago Douma2018-02-281-1/+1
| | | | | | | This avoids the browser to do autocompletion on the mail share password field. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update tests for indeterminate state, fix slashes not being escapedMaximilian Wende2018-02-161-1/+1
| | | | Signed-off-by: Maximilian Wende <dasisdormax@mailbox.org>
* Fix indeterminate checkbox state not showing correctlyMaximilian Wende2018-02-151-8/+11
| | | | | | | | | Also, the checkbox is updated to the correct state while a permission change is in progress. should fix issue #8371 Signed-off-by: Maximilian Wende <dasisdormax@secure.mailbox.org>
* Add indeterminate state to 'can edit' share permission checkbox, see #8371Maximilian Wende2018-02-151-3/+4
| | | | Signed-off-by: Maximilian Wende <dasisdormax@secure.mailbox.org>
* Fixed default expire date and placeholderJohn Molakvoæ (skjnldsv)2018-01-051-1/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Share datepicker fixJohn Molakvoæ (skjnldsv)2018-01-031-10/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* only replace permission popupmenuArthur Schiwon2017-11-171-3/+3
| | | | | | | | | | the contacts popovermenu is also present and is being replaces, ending up in two permission popupmenus with checkboxes duplicating the id, breaking further permission changes. plus, fixing a selector Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* rename secure drop back to files drop because of name collision with ↵Bjoern Schiessle2017-05-181-1/+1
| | | | | | securedrop.org Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix semicolon at end of JS linesMorris Jobke2017-05-011-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* don't toggle sharing popover together with contactsmenu popoverGeorg Ehrke2017-04-261-2/+2
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* add contactsmenu popoverGeorg Ehrke2017-04-261-1/+10
| | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* allow to set a password for shares which where created without a password ↵Bjoern Schiessle2017-04-201-1/+1
| | | | | | before the admin started to enforce the password Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow admin to enforce password on mail sharesBjoern Schiessle2017-04-201-1/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Show 'shared via' in share list for resharesRoeland Jago Douma2017-04-111-0/+13
| | | | | | | | | | | | Fixes #1330 userA shares a file to userB userB shares that file to userC userA can see both userB and userC. Now they can also see that userB shared it to user C Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Parse date trough momentRoeland Jago Douma2017-04-071-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* reset password field properties before we hide itBjoern Schiessle2017-04-071-1/+7
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add datepicker to the popoverBjoern Schiessle2017-04-071-10/+26
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow to edit single files shared by mail. This is useful for collaborative ↵Bjoern Schiessle2017-04-071-2/+0
| | | | | | editing documents Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* update unit testsBjoern Schiessle2017-04-071-4/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* change permission orderBjoern Schiessle2017-04-031-12/+10
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* make sure that variables are defined correctlyBjoern Schiessle2017-04-031-4/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>