Commit graph

352 commits

Author SHA1 Message Date
fenn-cs
8ec15c44b0 fix(sharingDetails): Show correct share target
The share details page should show the target email or user/server to which
the user is creating the share.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-04-18 11:12:14 +01:00
Ferdinand Thiessen
85108cfe35
fix(files_sharing): Disable autocomplete for share label and password
Prevent browsers - as good as possible - from filling in user credentials as share label and password.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-02 12:33:28 +02:00
Ferdinand Thiessen
5612d42bcc fix(files_sharing): Create passwords when enforced for mail shares
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-29 14:39:43 +00:00
fenn-cs
3a5475bd64 fix(share): Send correct share attributes upon share creation
- Send correct share attributes (`share.attributes`) to server upon creation.
- Delete parts of code that create or reference, `share.hasDownloadPermission`
(Not required by Share API)

Resolves : https://github.com/nextcloud/server/issues/44131

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-03-26 16:36:22 +01:00
fenn-cs
d2b0848a29 fix(share): Send empty expireDate when not expireDate set
When creating a new share, if the user unchecks "Set expiry date"
no `expireDate` is sent to the server.

However, the server then assumes the default configured, hence better
to send an empty value.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-03-26 14:14:06 +01:00
Ferdinand Thiessen
fef9fb3bc0
fix(tests): Add mock for window._oc_webroot
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-23 20:48:13 +01:00
fenn-cs
e86d5f5440 fix: List specific share permissions as subline
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-03-16 01:26:05 +01:00
fenn-cs
f9bef8f378 fix: No password set for new mail shares
Before the password is set on a new share, the computed property `hasUnsavedPassword`
is used to check that `this.share.newPassword` is not undefined. Direct assignment without
using Vue's `this.$set` makes it impossible for vue to detect that changes have happened on the share
object. Hence the inreactivity.

This worked initially most likely because `this.share.newPassword = await GeneratePassword()` was executed
before the computed properties where evaluated.

Resolves : https://github.com/nextcloud/server/issues/43919

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-03-14 00:59:22 +01:00
Christopher Ng
1260c8552a
feat: Allow registration of advanced external share actions
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-03-06 21:22:59 +01:00
Eduardo Morales
b3ec461fe8
feat: reconfigured NcActions to use MDI's
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-06 18:41:07 +01:00
Eduardo Morales
d5e2ca0883
chore: manual linting
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-06 18:41:07 +01:00
Eduardo Morales
7c7e71845a
feat: added new action for qrcode popup linkshare
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-06 18:41:06 +01:00
Julius Härtl
5bdc0cc76c feat: Rename circles to teams
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-03-06 10:40:24 +01:00
Louis Chemineau
bd88ecf534
test: Add test selector on sharing and versions components
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-27 09:22:29 +01:00
Louis Chemineau
29a60ac7a9
chore(files_sharing): Remove legacy share permissions editor
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-02-27 09:22:29 +01:00
skjnldsv
7b95811290 chore(files_sharing): use OCSResponse from @nextcloud/typings
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-02-23 14:12:14 +01:00
fenn-cs
82cdc1080f Fix undefined share object during expirationDate update
In 04e8733721 a regression was introduced.
`this` means nothing inside arrow functions, hence this.share was referring to
an undefined object and so all attempted updates for expiration dates would fail.

Resolves : https://github.com/nextcloud/server/issues/43256

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-02-20 11:10:23 +01:00
Vincent Petry
839ddaa354
feat: rename users to account or person
Replace translated text in most locations

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2024-02-13 21:06:30 +01:00
Grigorii K. Shartsev
fd5b9bd78c fix(files_sharing): lost styles for SharingEntryLink
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-02-13 16:48:38 +01:00
Joas Schilling
fa4b3273e8
fix(sharing): Move video verification option to password and hide without Talk
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-02-12 10:28:34 +01:00
Grigorii K. Shartsev
a7265dd46c
Merge pull request #43213 from nextcloud/fix/43139/sharing--migrate-quick-share-select-to-nc-actions
fix(sharing): migrate QuickShareSelect to NcActions
2024-02-08 18:27:30 +01:00
Louis Chemineau
898df41de9
Revert "Merge branch 'master' of github.com:nextcloud/server"
This reverts commit d9d60238c7, reversing
changes made to ba3fdb0cdc.
2024-02-08 15:31:19 +01:00
Grigorii K. Shartsev
66ba4c1e1b fix(sharing): migrate QuickShareSelect to NcActions
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-02-08 01:05:06 +01:00
John Molakvoæ
12fe86573f
feat(files): ask for confirm if deleting 5 items or more
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2024-02-07 11:08:24 +01:00
John Molakvoæ
6cf4fe19a0
fix(files): add mount root property and adjust delete wording
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2024-02-06 17:43:35 +01:00
fenn-cs
60959db89e Show quick permission subline on newline
- Show quick permission details/explanations on subline
- Fix icon colors, should be white (or component set color) when highlighted.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-02-04 23:02:22 +01:00
fenn-cs
d1ec85d1c7 Use @nextcloud/capabilities to obtain share api defaults
- Remove redundant initial state added
- Call `getCapabilities()` in share config file.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-02-01 17:53:36 +01:00
fenn-cs
d9a2a78392 Consider admin defaults when creating shares
The current share logic always uses the default `BUNDLED_PERMISSIONS.ALL`
which includes everything.

This commit updates share creation logic to use `defaultPermissions` if set
by admin for the creation of new shares.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-02-01 17:53:36 +01:00
Christopher Ng
22ab251cfa fix(files_sharing): Return focus to trigger element on sharing details close
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-01-26 11:21:04 -08:00
Simon L
420b3d085e sharing-entry__reshare needs ul or ol around it
Signed-off-by: Simon L <szaimen@e.mail.de>
2024-01-11 15:10:11 +01:00
John Molakvoæ
9553718acf
fix(files): group duplicate shares
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2024-01-11 11:57:49 +01:00
Ferdinand Thiessen
e35f6d89a2
fix(files_sharing): Add one string for every share type to not assume any language
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-13 16:37:39 +01:00
fenn-cs
04e8733721 Allow user to finish typing date before formatting
Debounce `onExpirationChange` to avoid calling `formatDateToString`
on invalid on uncompletely inputed date strings.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-12-11 21:06:31 +01:00
fenn-cs
c179408a0d Tooltip outside click, should abort share creation
It's unexpected that click outside a tooltip would proceed with the
 action that could be carried out inside the tooltip.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-12-11 21:03:28 +01:00
julia.kirschenheuter
696545b530 Replace input filed with password field and added password error message
Remove unneeded NcDateTimePicker

Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-12-08 10:22:42 +01:00
fenn-cs
e73a54906e Remove newPassword from share model, if disabled
It's important to delete the `newPassword` prop from the share
 model, if the user unchecks the isPasswordProtected checkbox.

This clearer and allows for the unchecking to actually work as
`this.$set()` fails with the falsy value `''`.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-12-06 22:11:27 +01:00
fenn-cs
06314a37c1 Create element reference inside $nextTick()
Accessing `this.$refs.shareList` outside $nextTick()
 could lead to the holder (`listComponent`) being undefined
 as the ref is yet to exist.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-12-06 22:11:27 +01:00
John Molakvoæ
09f49a2514
fix(files_sharing): fix sharing status indicator side after component update
Seems like the components now have max-height/width set too

Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
2023-12-05 11:36:38 +01:00
fenn-cs
9d86a0444d Improve share logic for enforced password & expiry date
* It's possible for the admin to enforce and expiry date after, some
 shares have been created. This commit makes possible to update the
 share with the new admin constraints.

* This commit would users to modify enforced expiry to anything within
 range and less than the enforced limit in the pre-create dialog for public
 shares.

* This commit fixes, unable to update share without updating password.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-11-30 11:58:35 +01:00
Jérôme Herbinet
931120b85d
Replace "Update" with "Edit"
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
2023-11-23 11:05:25 +01:00
Julius Härtl
018cf71820 fix: Avoid invisible areas through keyboard navigation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-11-17 17:48:32 +00:00
julia.kirschenheuter
ff2ef8d0d6 Replace ActionLink with ActionButton on sharing tab
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
So-authored-by: Grigorii K. Shartsev <me@shgk.me>
2023-11-17 16:55:05 +01:00
Christopher Ng
6329da9352 fix(a11y): Focus on sharing quick permission radio
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-11-16 16:05:00 -08:00
julia.kirschenheuter
9d9fffb9d3 Move delete share button into the scrolling container
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-11-15 17:11:10 +01:00
julia.kirschenheuter
7c987f0577
Adapt "advanced settings" button for accordion button
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-11-15 09:08:55 +01:00
Julius Härtl
d7ae387713 fix: Change scroll container for sharing details
In order to meet accessibility requirements we cannot use a sticky
footer that overlaps important interactable content. Therefore this
moves to a scroll container for the details which does not include the
action buttons at the bottom.

Larger indentation change in SharingDetailsTab was required to have a
wrapping container for the scroll area.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-11-13 23:41:21 +01:00
Simon L
9d0cefd71d fix description of sharing toggle
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-11-07 12:17:42 +01:00
Grigorii K. Shartsev
aee73c060b fix(files_sharing): permissions translation
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2023-11-06 18:40:21 +01:00
Christopher Ng
590daccca3 fix: Share select search globally icon
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-10-23 15:14:49 -07:00
fenn-cs
8dfcf2e02a Do not treat isDefaultExpireDateEnforced as fallback
`isDefaultExpireDateEnforced` and its corresponding `defaultExpirationDate`
is currently treated as the enforcement fallback when share type enforcements are not
set.

However, `isDefaultExpireDateEnforced` and `defaultExpirationDate` are actually more like
`isDefaultPublicExpireDateEnforced` and `defaultPublicExpirationDate` and therefore only applies
to public shares.

It might be ideal to rename this variables all the way from the backend config to the way we use
them in the frontend code.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-10-22 16:47:32 +00:00