summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialoglinkshareview.js
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup sharing leftoversJohn Molakvoæ (skjnldsv)2019-11-051-954/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Comply to eslintJohn Molakvoæ (skjnldsv)2019-10-011-397/+394
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Dont show menu automatically when share link is clickedGreta Doci2019-08-291-5/+0
| | | | Signed-off-by: Greta Doci <gretadoci@gmail.com>
* Move OC.getCapabilities to the bundle and deprecate OC._capabilities, ↵Christoph Wurst2019-05-131-2/+2
| | | | | | oc_capabilities 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>
* Improve the share link password error feedback with a red borderChristoph Wurst2019-04-161-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add handler for change event of the expire date fieldJulius Härtl2019-02-271-0/+11
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix expiration date changingAndrey Dyakov2019-02-051-1/+1
| | | Pass shareId to setExpirationDate()
* Fix updating the password of a link share when passwords are enforcedDaniel Calviño Sánchez2019-01-291-2/+0
| | | | | | | | | | The password input was shown in the popup menu when passwords were not enforced, or when they were enforced but no password was set, which prevented updating/changing the password once set. As the password input should be shown too when password are enforced and a password is set no condition is needed, so now the password input is always shown. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* added missing variable declarationsimsolost2019-01-251-2/+2
| | | | Signed-off-by: imsolost <imsolost@gmail.com>
* Fix integration of social sharing into the link popover menuJulius Härtl2019-01-221-15/+13
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Better identification of the public link sharesJohn Molakvoæ (skjnldsv)2018-11-261-0/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Allow to hide download option for folders shared by linkJulius Härtl2018-11-201-2/+0
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix share link password inputJohn Molakvoæ (skjnldsv)2018-11-201-6/+7
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Also use default label if share label is nullJulius Härtl2018-11-071-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix sharedialog failure handlerJohn Molakvoæ (skjnldsv)2018-11-061-1/+13
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add focus on pending popover openingJohn Molakvoæ (skjnldsv)2018-11-061-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix password enforce on public share linksJohn Molakvoæ (skjnldsv)2018-11-051-1/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add "Password protect by Talk" to the menu of link sharesDaniel Calviño Sánchez2018-11-021-0/+64
| | | | | | | | | | | | | | | | | | | | | | | When Talk is enabled the menu for link shares now shows a checkbox to protect the password by Talk (that is, to show the "Request password by Talk" UI in the authentication page for the link share). Although in e-mail shares protecting the share with a password and protecting the password by Talk are mutually exclusive actions (as when the password is set it is sent to the sharee, so it must be set again when protecting it by Talk to be able to verify the identity of the sharee), in the case of link shares protecting the password by Talk is an additional step to protecting the share with a password (as just setting the password does not disclose it to anyone). As such, the checkbox is shown only when there is a password set for the link share (even if the field itself for the password is not shown, like when they are enforced in the settings). Note that the icon set for the field, "icon-passwordtalk", does not currently exist; it is the same used for e-mail shares, and it is needed simply to get the right padding in the menu. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Password policy fix and menu open on first shareJohn Molakvoæ (skjnldsv)2018-11-011-2/+25
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix wording, sort 'Add another link' to bottom so it does not confuseJan-Christoph Borchardt2018-11-011-4/+5
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Fix password enforcementJohn Molakvoæ (skjnldsv)2018-11-011-45/+76
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix enforce dateJohn Molakvoæ (skjnldsv)2018-11-011-3/+12
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix note displayJohn Molakvoæ (skjnldsv)2018-11-011-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Copy link outside menuJohn Molakvoæ (skjnldsv)2018-11-011-11/+23
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Migrate link shares to arrayJohn Molakvoæ (skjnldsv)2018-11-011-143/+278
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add "Hide download" to the menu of link sharesDaniel Calviño Sánchez2018-10-301-0/+22
| | | | | | | | | | Hiding the download does not depend on other settings and it does not affect other settings either (for example, it would be possible to hide the downloads yet make the share editable), so a simple checkbox was added to the menu. However, note that this option is only available for files, but not for folders. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Add missing semicolonsStefan Weil2018-10-191-3/+3
| | | | | | | | | This fixes some recommendations from LGTM: Avoid automated semicolon insertion (90% of all statements in the enclosing function have an explicit semicolon). Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Move OC.Share to compiled handlebarsRoeland Jago Douma2018-10-041-153/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Change wording of 'Copy URL' to more understandable 'Copy link'Jan-Christoph Borchardt2018-10-011-5/+5
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Disabled checkboxes and design fixesJohn Molakvoæ (skjnldsv)2018-08-161-19/+15
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix password enforce on public linksJohn Molakvoæ (skjnldsv)2018-08-151-14/+88
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Reword share comment featureRoeland Jago Douma2018-07-311-1/+1
| | | | | | Fixes #10403 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Tests fixes and design bumpJohn Molakvoæ (skjnldsv)2018-07-211-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Don't use shorthand syntax for functionsJulius Härtl2018-07-211-4/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Public fixesJohn Molakvoæ (skjnldsv)2018-07-211-4/+43
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Public shareJohn Molakvoæ (skjnldsv)2018-07-211-109/+262
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Set autocomplete on share password inputRoeland Jago Douma2017-12-121-2/+2
| | | | | | Fixes #6821 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove the char because it breaks the export from transifexJoas Schilling2017-06-121-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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 event firingRoeland Jago Douma2017-05-041-3/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add radio class to read/write sharing options and 1px left adjustmentFelix A. Epp2017-05-041-3/+3
| | | | Signed-off-by: Felix A. Epp <work@felixepp.de>
* Fix read-only label idFelix A. Epp2017-05-041-1/+1
| | | | Signed-off-by: Felix A. Epp <work@felixepp.de>
* Make files drop more permanentRoeland Jago Douma2017-05-041-59/+47
| | | | | | Implement the suggestions from #2207 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix "Copied" message for public linksMorris Jobke2017-05-011-3/+0
| | | | | | | | | * share a file/fodler by public link and click the copy to clipboard icon and watch the tooltip * before: it said "Copy" * after: it now says "Copied" after clicking the button Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #4462 from danxuliu/fix-sharing-password-protected-linkRoeland Jago Douma2017-04-251-1/+3
|\ | | | | Fix sharing a password protected link
| * Use "complete" callback in onPasswordEnteredDaniel Calviño Sánchez2017-04-241-2/+1
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Fix working icon not hidden when successfully setting a passwordDaniel Calviño Sánchez2017-04-241-0/+3
| | | | | | | | | | | | | | | | | | When a request to set the password of a shared link is sent a working icon is shown. However, as there was no "success" callback, the icon was never hidden again after successfully setting the password (it worked fine if there was an error, though). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Fix working icon placement on password saveDaniel Calviño Sánchez2017-04-241-2/+2
|/ | | | | | | | | | | | | Before, the icon appeared below the text input for the password. Now, it appears inside the text input, to the right end. The CSS was adjusted based on other icons shown in that position for other text inputs in the Share tab view, like the information icon or the clipboard icon. Fixes #4135 Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* Allow social sharing to specify if a new window is openedRoeland Jago Douma2017-04-201-7/+13
| | | | | | | For example mail shares should not open a new window because it looks weird. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>