Commit graph

6326 commits

Author SHA1 Message Date
fenn-cs
2cee1319c1 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-07-15 10:44:33 +01:00
Ferdinand Thiessen
c01f4a45cc fix(files_sharing): Add one string for every share type to not assume any language
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-15 10:44:33 +01:00
Nextcloud bot
42f901c9f8
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-07-15 00:20:16 +00:00
Nextcloud bot
05fc640671
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-07-14 00:19:50 +00:00
Nextcloud bot
fb73dd8dc7
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-07-13 00:20:13 +00:00
fenn-cs
ada08ed0e5 refactor(SharingInput): Remove unused addShare
The new sharing flow since NC27 requires that users open the sharing details tab and

customize their share before creating it.

In https://github.com/nextcloud/server/pull/39472 the work of `addShare` was handed down to

`openSharingDetails` that opens the sharing details tab for the user to customize and manually

creat their share.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-07-12 17:18:26 +01:00
fenn-cs
3b11104f68 fix(ExternalSharing): Handle template share from external sources
The new sharing flow requires or implies that users should edit share before creating.
External sources should not created the share IF we would upon sharing details tab on first request.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-07-12 17:18:26 +01:00
Andy Scherzinger
6268273c47
Merge pull request #46363 from nextcloud/backport/46321/stable27
[stable27] fix(SharingDetailsView): Prevent illegal unselection of read permissions
2024-07-11 10:51:43 +02:00
Nextcloud bot
81bf24ad7b
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-07-11 00:20:20 +00:00
fenn-cs
fbc8cfa719 fix(SharingDetailsView): Prevent illegal unselection of read permissions
With the exception of "file drop" on link shares all other shares need the read permissions at least.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-07-10 12:08:13 +01:00
Nextcloud bot
3e5fa74790
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-07-03 00:20:31 +00:00
Nextcloud bot
a4620b4cb1
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-30 00:19:43 +00:00
Nextcloud bot
1f6a6f2b04
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-29 00:20:06 +00:00
Nextcloud bot
25ae38c5c4
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-28 00:21:04 +00:00
Nextcloud bot
59f718e0e3
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-27 00:20:16 +00:00
Nextcloud bot
975264efcf
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-24 00:19:52 +00:00
Nextcloud bot
7f0cf9209e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-16 00:19:37 +00:00
Nextcloud bot
1bc8b20de1
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-14 00:20:08 +00:00
fenn-cs
9c68799fd2 fix(ShareEntryLinkedList): Correctly propagate share data
`this.shares.unshift` mutates the share object for every component that uses
the share mixin.

Using the immutable approach changes the array reference which makes the mixin
lose track of the share object.

It would have been better to bubble up the share object but here we are :)

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-06-12 16:20:39 +01:00
Joas Schilling
bacf8c61a8 fix(sharing): Don't change the type of the controller argument
[EA] New value type (\DateTime) is not matching the resolved parameter type and might introduce types-related false-positives.

Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-06-11 14:17:57 +01:00
fenn-cs
5d86c407a7 fix(shareApiController): avoid duplicated expiryDate operations
`expireDate` can be set once and used anywhere needed, the current implementation,
duplicates this behavior which leads to `parseDate` receiving an a date object it
parsed and returend earlier in the createShare method.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-06-11 14:17:57 +01:00
fenn-cs
b0d4661a1b refactor(shareApiController): use contrusctor property promotion & DI logger
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-06-11 14:17:57 +01:00
John Molakvoæ
8eb3a6ec83
Merge pull request #44009 from nextcloud/backport/43252/stable27 2024-06-07 11:05:32 +02:00
Nextcloud bot
8d2387016b
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-06-05 09:56:34 +00:00
fenn-cs
29f717a999 fix(ShareApiClients): Maintain meaning of '' and null for share api clients
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-05-29 12:26:29 +00:00
fenn-cs
bdeba6590d test(Sharing): Integration test for no expiration set date for share
- Verify that explicitly sending empty `expireDate` param to server overwrite default

and sets not expiry date, if non is enforced.

- Update tests to avoid converting empty string to date.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-05-25 11:18:41 +01:00
fenn-cs
13688f39a7 fix(shareManager): Respect empty expireDate in server
If `expireDate` is an empty string and not `null` then the server should not set a default.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-05-24 15:30:49 +01:00
Christopher Ng
ffda00b2ad fix: Hide download action in shares view
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-05-22 11:11:12 -07:00
Julius Härtl
c8003e480b fix: Keep download action for files and hide only for relevant files
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2024-05-22 11:10:50 -07:00
fenn-cs
2be68340c1 fix(files_sharing): Improve recursion in onNewLinShare
These changes fixes the issue of having the refresh the UI after share creation, as the share is not
immediately removed from the UI list.

Important changes

- The basis of checking wether a password/expire date is no longer based on config values alone
because the config is not expected in a share creation circle. Hence we check the configs and check
if the share object (this.share) has the expected values set. This way, once the required properties
are set, code control does not enter the block meant to handle the setting of required properties
unneccessarily.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-05-14 09:32:54 +01:00
fenn-cs
d6340ed0f9 refactor(ShareDetails): Prevent undefined errors for share.permissions
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-05-14 09:32:54 +01:00
Nextcloud bot
0507be52d1
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-05-08 00:21:24 +00:00
Nextcloud bot
3b3c57ed75
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-05-07 00:20:31 +00:00
Nextcloud bot
d29c1aafd1
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-05-03 00:20:15 +00:00
Nextcloud bot
4ee7814971
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-27 00:20:39 +00:00
Nextcloud bot
6c132af3e6
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-26 00:21:31 +00:00
Nextcloud bot
d229b069f6
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-25 00:21:15 +00:00
Nextcloud bot
19c3ca0f26
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-24 00:20:51 +00:00
Nextcloud bot
e414701771
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-23 00:21:12 +00:00
Nextcloud bot
277052a605
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-22 00:21:28 +00:00
Nextcloud bot
79737145e6
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-21 00:20:59 +00:00
Nextcloud bot
9261a84de1
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-20 00:20:33 +00:00
Git'Fellow
8e5b14cd6c
Fix backport
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
2024-04-19 18:54:40 +02:00
Nextcloud bot
5907824827
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-19 00:20:56 +00:00
Nextcloud bot
02d680c0e1
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-18 00:21:01 +00:00
Benjamin Gaussorgues
3fb243e21c
Merge pull request #44499 from nextcloud/backport/44484/stable27 2024-04-17 11:31:34 +02:00
Nextcloud bot
5dde6512e0
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-17 00:21:11 +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
fenn-cs
9f84e723eb 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-04-08 12:25:48 +01:00
Nextcloud bot
4fe9fe5489
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2024-04-05 00:20:14 +00:00