Commit graph

863 commits

Author SHA1 Message Date
Daniel Kesselberg
b0f9113eba
fix: encode uri for trashbin delete
Replace d280912 with a cleaner approach.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-11-13 14:49:32 +01:00
Grigorii K. Shartsev
d439417e17 chore(assets): Recompile assets
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2023-10-31 01:17:27 +01:00
dependabot[bot]
17a04a092d chore(deps): bump davclient.js from 0.2.1 to 0.2.2
Bumps [davclient.js](https://github.com/owncloud/davclient.js) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/owncloud/davclient.js/releases)
- [Commits](1ab200d099...de93b734bd)

---
updated-dependencies:
- dependency-name: davclient.js
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-10-30 11:33:18 +00:00
fenn-cs
2f0e9a80c5 Fix dupblicate sharing option
Allow download was duplicated via a rebase/merge action during
fe78157b77 this fixes that.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-10-28 09:53:42 +01:00
fenn-cs
170a83a77e 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-28 09:53:42 +01:00
fenn-cs
a5a9564069 Fix has expiration date logic
Current expiration date errorneously assumes that `defaultExpirationDate`
applies to all kinds of shares. But it only really applies to public shares despite
its name.

This commit, fixes that by paring expiration dates with the correct share types during
new share initialization and simplifying the `hasExpirationDate` (check) property.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-10-28 09:53:41 +01:00
fenn-cs
77b047cc62 Check expiry enforcement for all share types
We should check that a maximum expiry date has been enforced for
all shares and NOT JUST FOR internal shares before enforcing a UI max date,
like in commit 9757e680e2

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-10-28 09:53:41 +01:00
fenn-cs
281e9ac559 Allow share expiry dates lower than enforced limits
Previously, users could change the share expiry date up
to the enforced maximum.

The new share flow imposed the enforced share expiry
date maximum literally and did not allow even dates
lower than the maximum enforced.

That does not make much sense, if the enforced expiry date is 30
days from creation date, then it's logical to allow users set the
date to anything less than 30 days from the creation date.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-10-28 09:53:41 +01:00
nextcloud-command
a83ef1226e chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-10-12 10:45:27 +00:00
nextcloud-command
90402f1dbe chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-10-10 01:03:11 +00:00
fenn-cs
fe78157b77 Fixed mixed translations in sharing details
Due to a typo in the app passed to the translation method, some
strings translations don't work.

This commit corrects the spelling `file_sharing` to `files_sharing` and
hence resolves : https://github.com/nextcloud/server/issues/40801

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-10-10 01:14:44 +01:00
Christopher Ng
4516bb0587 enh(a11y): Add label to share note textbox
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-10-09 23:43:08 +01:00
F. E Noel Nfebe
4ae4ccc0c2
Merge pull request #40747 from nextcloud/manual/backport/stable27/40629
[stable27] Updates to new sharing flow
2023-10-09 23:35:11 +01:00
Arthur Schiwon
a762275dd0
Merge pull request #40718 from nextcloud/backport/40428/stable27
[stable27] Multiple bug fix in users list
2023-10-09 22:51:37 +02:00
Arthur Schiwon
154b70292f
Merge pull request #40757 from nextcloud/encode-uri-trashbin-delete-2
[stable27] fix: encode uri for trashbin delete
2023-10-09 22:50:36 +02:00
fenn-cs
5f4c56e97c Correct check for enabled expiration date
The default expiration date cannot be enforced if it is not enabled
in the first place. Hence, the check for whether a share has an expiration date
should not consider enforcements but only where the share expiry type is enabled.

For example : Using `this.config.isDefaultExpireDateEnabled` instead of
`this.config.isDefaultExpireDateEnforced` which can be verified by checking `isExpiryDateEnforced`.

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

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-10-09 15:52:35 +00:00
fenn-cs
fe9258a7c5 Updates to sharing flow
- Show enforced expiry date for new shares.
- Improve quick share dropdown visibility in dark mode.
- Prevent expiry date from showing expire for incoming shares.
by updating the check for `share.passwordExpirationTime` to equally
check for `undefined`.
- Move "Download permission/attribute" from custom setting (as it is just
another advanced setting and not an actual permission).
- Show correct text for upload/editing when "allow public uploads" is enabled
or disabled by admin.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-10-09 15:49:35 +01:00
Ferdinand Thiessen
951ab7a999 fix(files): Show correct quota size (file size base 2)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-10-06 14:29:59 +02:00
Daniel Kesselberg
ce0cc84c21
fix: encode uri for trashbin delete
Replace d280912f31 with a cleaner approach.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-10-03 17:46:16 +02:00
Christopher Ng
617f5aef1d chore: compile assets
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-09-29 12:14:28 -07:00
Daniel
4393db3380
Merge pull request #40642 from nextcloud/fix/noid/stable27-encode-uri-trashbin-restore 2023-09-28 10:22:16 +02:00
Daniel Kesselberg
d280912f31
fix: encode uri for trashbin delete
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-09-26 16:47:01 +02:00
nextcloud-command
4e2207bd52 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-26 14:12:35 +00:00
Ferdinand Thiessen
b7a939d091 chore: Compile assets
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-09-24 17:13:04 +02:00
Ferdinand Thiessen
9b4a42db52 chore: Update @nextcloud/dialogs to 4.2.1
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-09-23 17:27:49 +02:00
fenn-cs
236ee6c578 Auto set password for new email shares
Suggest auto generated password for new public share (mail share).

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

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-09-21 08:16:48 +01:00
fenn-cs
cf2b9e8353 Consider share type for enforced share expiry dates
We have three kind of share expiry date enforcements.

- `isDefaultExpireDateEnforced`
- `isDefaultInternalExpireDateEnforced`
- `isDefaultRemoteExpireDateEnforced`

Before these commit, `isExpiryDateEnforced` that is used to
disable/enable the set expiry date checkbox does not take those into consideration
which is problematic as those have different applications.

In addition, this commit now uses `isExpiryDateEnforced` to disable/enable the input for
expiry date that shows up before the creation of link shares.

Here, `hasExpirationDate` is also removed from 'SharingEntryLink` component as it is
not used.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-20 15:18:44 +00:00
Richard Steinmetz
c5377c572b
Merge pull request #40520 from nextcloud/fix/guest-pages-contentinfo-stable27 2023-09-20 16:36:26 +02:00
fenn-cs
4755a47f84 Properly align all sharing-entry types
SharingEntryLink and regular ShareEntry were not properly visually aligned
before this commit.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-20 10:19:55 +00:00
Richard Steinmetz
664f2aa807
fix: content info footer on guest pages
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-09-20 09:27:53 +02:00
fenn-cs
65ff60a69b Consider link shares in removeShare method in SharingTab
Currently, the `removeShare` method in the `SharingTab` view,
does not take into account `linkShares`.

Since link shares now shares thesame detail view with other share types,
it should therefore be considered hence this commit.

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

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-18 08:35:30 +00:00
fenn-cs
481f5bba81 Correctly switch/revert from custom to bundled perms
We have a set custom permissions checkbox, that when selected should set
the quick permissions settings to custom as well as show the custom permission settings.

When the checkbox is unchecked the quick permissions have to be reset to the default,
`bundledPermissions.ALL` but also users can switch from custom permissions to `bundled`
by just changing the radio select, hence we need a mechanism to set the permissions back
to the correct fallback depending on where the user has toggled the the custom permission from.

The mechanism is `revertSharingPermission` and this commit, makes sure revert values are correctly
set upon toggle.

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

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-15 13:48:54 +00:00
Louis Chemineau
53bc5c9594 Bump @nc/dialogs to 4.2.0
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-09-14 12:14:21 +02:00
fenn-cs
15dd2e85e1 Fix invite guest for new sharing flow
Call external handlers such as the one in the guess app
https://github.com/nextcloud/guests/blob/master/src/main.js#L30
if present.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-14 12:04:16 +02:00
Louis Chemineau
fb76e03345 Hide additional content when share details is open
Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-14 12:01:18 +02:00
fenn-cs
cd795e6422 Ellipsize user status in sharing entry
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-14 11:37:18 +02:00
fenn-cs
eb9ba2e8ce Display user status by the side in sharing flow
The quick share drop down now takes the place where the user status
would show in the past, so we have the option of removing it (as it's available
in the profile dropdown) or putting it at the side as such.

It's put on the side without the icon, as the status icon appears on the avatar
when set.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-09-14 08:47:46 +02:00
fenn-cs
2a54fc57eb Consistent delete button in share details
Delete button text should have same size as other buttons.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-13 10:18:08 +01:00
nextcloud-command
0abc80785a chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-11 18:22:48 +00:00
fenn-cs
8113c027d8 Add icons for bundled permissions
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-11 13:26:25 +01:00
Louis Chemineau
bab1a981c3 Fix lint error
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-09-07 22:52:32 +02:00
Louis Chemineau
34e73b3c60 Fix: allow to name the current version
We only need to change the filename
of the current version for the viewer

Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-09-07 22:39:52 +02:00
Louis Chemineau
eb4185590b Enable new versions feature for groupfolders
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-09-07 22:37:22 +02:00
nextcloud-command
c0b97ea89a chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-07 13:31:24 +00:00
Arthur Schiwon
a5f71a7502
Merge pull request #40298 from nextcloud/backport/39693/39693-stable27
[stable27] enable download configuration on circles shares
2023-09-07 15:06:58 +02:00
nextcloud-command
b29375f686 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-06 15:00:39 +00:00
Maxence Lange
15eb92f517 enable download configuration on circles shares
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-09-06 13:40:55 -01:00
Christopher Ng
c140b385e5 chore: Compile assets
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-09-05 11:58:20 -07:00
fenn-cs
1d74d62d2a Improve sharing flow
This commit introduces the following changes:

- Does not create new share once user is selected for internal shares
- Adds a `SharingDetails` view for share configurations
- Adds a quick share select to enable fast changes in share permisions.

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

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-08-31 14:28:13 +02:00
Arthur Schiwon
7cdafeac36
Revert "Improve sharing flow"
This reverts commit 8b42fb033f.
2023-08-31 12:22:10 +02:00