Commit graph

121 commits

Author SHA1 Message Date
nextcloud-command
193ca171b0 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-05-14 08:39:45 +00:00
fenn-cs
58db30da87 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-04-15 16:00:23 +01:00
nextcloud-command
b3c996a6ae chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-04-08 11:46:53 +00:00
nextcloud-command
bd2059a5f1 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-04-03 18:47:24 +02:00
nextcloud-command
8699d16777 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-03-14 12:20:09 +00:00
nextcloud-command
8d386ed6a2 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-02-21 09:54:32 +01:00
nextcloud-command
db6a04180e chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-02-13 22:12:28 +00:00
nextcloud-command
2c20cb9ff0 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-02-13 11:15:16 +00:00
Christopher Ng
c30c219657 chore: compile assets
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-02-08 16:16:07 -08:00
nextcloud-command
2fa7b6e068 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-02-04 11:01:32 +00:00
fenn-cs
080390976f 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-04 11:44:15 +01:00
nextcloud-command
00c26fc085 chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-01-18 09:57:59 +00:00
nextcloud-command
47e715e1cb chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2024-01-17 18:33:06 +00:00
fenn-cs
8c5ea73404 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>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-11-30 16:26:46 +00:00
Jérôme Herbinet
21c157e349 Replace "Update" with "Edit"
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-11-29 12:24:15 +00:00
fenn-cs
38ac4f8d92 Fix icons for bundled perms in sharing details
It appears `NcCheckboxRadioSwitch` does not take icons via
`<template #icon>` (at least not anymore) but two options in the bundled
 perms still used that and that has been fixed in this commit.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-11-25 08:24:46 +01:00
Grigorii K. Shartsev
b43325fb43 fix(files_sharing): permissions translation
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2023-11-25 08:24:46 +01: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
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
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
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
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
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
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
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
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
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
fenn-cs
8b42fb033f 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-30 18:12:49 +02:00
Ferdinand Thiessen
b73586563d feat: Add new Vue FilePicker from @nextcloud/dialogs and use it by default.
Still providing the legacy one until the Vue FilePicker is out of beta.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-08-10 23:47:40 +02:00
Christopher Ng
6f30d86a96 fix(files_sharing): String translations
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
(cherry picked from commit 8a51d64b09)
2023-08-01 09:54:38 -07:00
nextcloud-command
8ccff9c88d chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-07-13 06:44:14 +00:00
Richard Steinmetz
0387440a6c
fix(files_sharing): hide download permission for circle shares
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-07-10 09:43:49 +02:00
Simon L
ff40cd7563 Move deprecation warnings to debug
Signed-off-by: Simon L <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-06-24 16:25:58 +00:00
Robin Appelman
bf6071608e reload filelist when adding or removing shares
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-05-24 14:14:36 +00:00
Simon L
f5e8268ced Use the color-primary-element* variables
Signed-off-by: Simon L <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-05-13 10:15:33 +00:00