Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6dce11713a | ||
|
|
8648f1bb3f |
@@ -53,8 +53,6 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {
|
|||||||
widget.collection!.publicURLs.firstOrNull?.enableDownload ?? true;
|
widget.collection!.publicURLs.firstOrNull?.enableDownload ?? true;
|
||||||
final isPasswordEnabled =
|
final isPasswordEnabled =
|
||||||
widget.collection!.publicURLs.firstOrNull?.passwordEnabled ?? false;
|
widget.collection!.publicURLs.firstOrNull?.passwordEnabled ?? false;
|
||||||
final isJoinEnabled =
|
|
||||||
widget.collection!.publicURLs.firstOrNull?.enableJoin ?? false;
|
|
||||||
final enteColorScheme = getEnteColorScheme(context);
|
final enteColorScheme = getEnteColorScheme(context);
|
||||||
final PublicURL url = widget.collection!.publicURLs.firstOrNull!;
|
final PublicURL url = widget.collection!.publicURLs.firstOrNull!;
|
||||||
final String urlValue =
|
final String urlValue =
|
||||||
@@ -96,31 +94,6 @@ class _ManageSharedLinkWidgetState extends State<ManageSharedLinkWidget> {
|
|||||||
AppLocalizations.of(context).allowAddPhotosDescription,
|
AppLocalizations.of(context).allowAddPhotosDescription,
|
||||||
),
|
),
|
||||||
const SizedBox(height: 24),
|
const SizedBox(height: 24),
|
||||||
if (flagService.internalUser)
|
|
||||||
MenuItemWidget(
|
|
||||||
key: ValueKey("Allow join $isJoinEnabled"),
|
|
||||||
captionedTextWidget: const CaptionedTextWidget(
|
|
||||||
title: "Allow joining album (i)",
|
|
||||||
),
|
|
||||||
alignCaptionedTextToLeft: true,
|
|
||||||
menuItemColor: getEnteColorScheme(context).fillFaint,
|
|
||||||
trailingWidget: ToggleSwitchWidget(
|
|
||||||
value: () => isJoinEnabled,
|
|
||||||
onChanged: () async {
|
|
||||||
await _updateUrlSettings(
|
|
||||||
context,
|
|
||||||
{'enableJoin': !isJoinEnabled},
|
|
||||||
);
|
|
||||||
},
|
|
||||||
),
|
|
||||||
),
|
|
||||||
if (flagService.internalUser)
|
|
||||||
MenuSectionDescriptionWidget(
|
|
||||||
content: isCollectEnabled
|
|
||||||
? "Allow people with link to join your album as Collaborator"
|
|
||||||
: "Allow people with link to join your album as Viewer",
|
|
||||||
),
|
|
||||||
if (flagService.internalUser) const SizedBox(height: 24),
|
|
||||||
MenuItemWidget(
|
MenuItemWidget(
|
||||||
alignCaptionedTextToLeft: true,
|
alignCaptionedTextToLeft: true,
|
||||||
captionedTextWidget: CaptionedTextWidget(
|
captionedTextWidget: CaptionedTextWidget(
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
- Neeraj: (i) Add allow joining album option in manage links
|
|
||||||
- Neeraj: Fix lock error + improve logViewer
|
- Neeraj: Fix lock error + improve logViewer
|
||||||
- Laurens: text embedding caching for memories and discover
|
- Laurens: text embedding caching for memories and discover
|
||||||
- Neeraj: (i) Option to send qr for link
|
- Neeraj: (i) Option to send qr for link
|
||||||
- Neeraj: (i) Debug option to enable logViewer
|
- Neeraj: (i) Debug option to enable logViewer
|
||||||
- Neeraj: Potential fix for ios in-app payment
|
- Neeraj: Potential fix for ios in-app payment
|
||||||
@@ -34,7 +34,7 @@ type UpdatePublicAccessTokenRequest struct {
|
|||||||
|
|
||||||
func (ut *UpdatePublicAccessTokenRequest) Validate() error {
|
func (ut *UpdatePublicAccessTokenRequest) Validate() error {
|
||||||
if ut.DeviceLimit == nil && ut.ValidTill == nil && ut.DisablePassword == nil &&
|
if ut.DeviceLimit == nil && ut.ValidTill == nil && ut.DisablePassword == nil &&
|
||||||
ut.Nonce == nil && ut.PassHash == nil && ut.EnableDownload == nil && ut.EnableCollect == nil {
|
ut.Nonce == nil && ut.PassHash == nil && ut.EnableDownload == nil && ut.EnableCollect == nil && ut.EnableJoin == nil {
|
||||||
return NewBadRequestWithMessage("all parameters are missing")
|
return NewBadRequestWithMessage("all parameters are missing")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user