Commit Graph

118 Commits

Author SHA1 Message Date
fenn-cs
0537bbd331 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-02 11:29:04 +00:00
fenn-cs
a092bae720 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-02 11:59:10 +01:00
Daniel Kesselberg
4f7032475e
fix: encode uri for delete, restore and favorite
To encode # and other characters properly

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-09-28 20:36:22 +02:00
Christopher Ng
39adf3a4ab chore: compile assets
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-09-27 17:39:38 -07:00
John Molakvoæ (skjnldsv)
e3b2af4d9c
fix(files): preview loading
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2023-09-26 20:22:10 +02:00
fenn-cs
a3613350f6 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>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-26 06:06:27 +00:00
dependabot[bot]
02de7ffd78 chore(deps): Bump @nextcloud/dialogs from 5.0.0-beta.2 to 5.0.0-beta.4
Bumps [@nextcloud/dialogs](https://github.com/nextcloud-libraries/nextcloud-dialogs) from 5.0.0-beta.2 to 5.0.0-beta.4.
- [Release notes](https://github.com/nextcloud-libraries/nextcloud-dialogs/releases)
- [Changelog](https://github.com/nextcloud-libraries/nextcloud-dialogs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud-libraries/nextcloud-dialogs/compare/v5.0.0-beta.2...v5.0.0-beta.4)

---
updated-dependencies:
- dependency-name: "@nextcloud/dialogs"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-24 14:30:20 +02:00
John Molakvoæ (skjnldsv)
216804f83d
fix(files): title and inline actions
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-21 15:20:17 +02:00
fenn-cs
56771b50c4 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 16:43:12 +00:00
Lucas Azevedo
03ece129bf
refactor(f2v): Migrate unread comments action to the new FileAction API
Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
2023-09-16 14:08:47 +02:00
fenn-cs
ef5bb420f2 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-15 16:30:59 +00:00
fenn-cs
386b08d139 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>
2023-09-15 12:14:38 +01:00
fenn-cs
27559760d1 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-14 16:10:29 +00:00
fenn-cs
1f74c88bc7 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>
2023-09-14 12:00:32 +01:00
Louis Chemineau
b3abfcb64c 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-13 22:27:20 +00:00
fenn-cs
2c22e1f86a 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-13 20:19:12 +00:00
fenn-cs
2b2622ddd1 Non sticky delete button
Removes button from footer and removes button background.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-09-13 15:42:16 +01:00
fenn-cs
3d071abcf8 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-12 21:11:28 +00:00
nextcloud-command
cad1db854b chore(assets): Recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-09-07 10:19:47 +00:00
Grigorii K. Shartsev
cc7d155c6e chore: build assets
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2023-09-05 22:19:57 +02:00
Maxence Lange
4e2d6b5e42 renable download configuration on circles shares
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-09-05 12:12:15 -01:00
John Molakvoæ
b304c3766c
feat(files): add folder icon overlay
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-09-05 11:40:06 +02:00
John Molakvoæ
e040d939e5
feat(files): add sharing icon in header
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-09-02 01:16:41 +02:00
John Molakvoæ
52590a762f
feat(files): add uploader
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-09-01 14:35:40 +02:00
fenn-cs
79f62632ea 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 17:58:01 +02:00
Christopher Ng
5ed9536c93 chore: compile assets
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-08-29 11:05:52 -07:00
Ferdinand Thiessen
e7c03aa9c0 chore: Build assets
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-08-26 21:01:37 +02:00
Joas Schilling
e1accaf0b1
chore(assets): Recompile JS
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-08-22 08:41:04 +02:00
dependabot[bot]
380e97ddb0 chore(deps): Bump nextcloud-vue-collections from 0.10.0 to 0.11.1
Bumps [nextcloud-vue-collections](https://github.com/juliushaertl/nextcloud-vue-collections) from 0.10.0 to 0.11.1.
- [Release notes](https://github.com/juliushaertl/nextcloud-vue-collections/releases)
- [Commits](https://github.com/juliushaertl/nextcloud-vue-collections/compare/v0.10.0...v0.11.1)

---
updated-dependencies:
- dependency-name: nextcloud-vue-collections
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-08-19 13:11:29 +00:00
John Molakvoæ
2cdb074771
chore: compile assets
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-08-17 18:56:39 +02:00
John Molakvoæ
0a046844f6
feat(theming): add mime accept in Theming image file picker
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-08-03 11:49:45 +02:00
John Molakvoæ (skjnldsv)
77446325b2
fix(files): fix extension with custom displayName
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-08-02 17:18:48 +02:00
Ferdinand Thiessen
fab9f48efe chore: Build assets
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-08-02 15:21:30 +02:00
Christopher Ng
8a51d64b09 fix(files_sharing): String translations
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-07-31 23:17:23 +00:00
John Molakvoæ
bb9c7ee75c fix(files): default emptycontent message
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-07-18 23:53:04 +02:00
Richard Steinmetz
270d3a4269
fix(files_sharing): hide download permission for circle shares
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-07-10 08:51:49 +02:00
John Molakvoæ
cd54f7c7f4
chore: upgrade typescript, eslint and fix lint
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-06-27 16:16:41 +02:00
nextcloud-command
c9f8902b0c chore(deps): fix npm audit
Signed-off-by: GitHub <noreply@github.com>
2023-06-25 03:30:40 +00:00
Simon L
95deec130a address review
Signed-off-by: Simon L <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-06-24 15:00:15 +00:00
Louis Chemineau
fbde8f91b6 Don't disable actions when saving share permissions
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-06-19 12:13:19 +02:00
John Molakvoæ
eff14a2382
Bump @nextcloud/auth @nextcloud/axios @nextcloud/calendar-availability-vue @nextcloud/dialogs @nextcloud/files and @nextcloud/router
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-06-14 10:47:19 +02:00
dependabot[bot]
d4bebc5d29 chore(deps): Bump @nextcloud/event-bus from 3.0.2 to 3.1.0
Bumps [@nextcloud/event-bus](https://github.com/nextcloud/nextcloud-event-bus) from 3.0.2 to 3.1.0.
- [Release notes](https://github.com/nextcloud/nextcloud-event-bus/releases)
- [Changelog](https://github.com/nextcloud/nextcloud-event-bus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/nextcloud-event-bus/compare/v3.0.2...v3.1.0)

---
updated-dependencies:
- dependency-name: "@nextcloud/event-bus"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-06-11 08:04:17 +00:00
Christopher Ng
21382099d0 chore(deps): Bump @nextcloud/vue from 7.11.6 to 7.12.0
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-06-08 10:17:40 -07:00
Daniel Kesselberg
7d02d98d9e
chore: recompile
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-05-23 22:36:14 +02:00
Robin Appelman
8de2984349 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-22 13:22:52 +00:00
Joas Schilling
9f8fa4802b
chore(assets): Recompile JS
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-05-22 12:53:21 +02: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
Louis Chemineau
6faf8b85d6 Do not allow to toggle between password and text in sharing
This does not makes sense as we do not have the clear text value.

Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-05-09 17:33:53 +02:00
Christopher Ng
8960df2d6a Fix share input id
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-05-02 02:22:29 +00:00
John Molakvoæ
ab431999c3
chore(npm): fix warning and build
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-04-21 14:01:41 +02:00