Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Show the state of public_photos_hidden #251

Merged
merged 1 commit into from
Feb 22, 2021
Merged

Conversation

kamil4
Copy link
Contributor

@kamil4 kamil4 commented Feb 19, 2021

This is just a minor front end companion to LycheeOrg/Lychee#932. It doesn't add any new functionality; it just makes sure that the visibility dialog for photos correctly reflects the setting of the new public_photos_hidden config.

@kamil4 kamil4 requested review from ildyria and d7415 February 19, 2021 16:02
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

if (lychee.downloadable) {
$('.basicModal .choice input[name="downloadable"]').prop("checked", true);
}
// Photos shared individually are always hidden.
$('.basicModal .choice input[name="hidden"]').prop("checked", true);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good optimisation! I'm unclear why that was there twice.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing it was a copy-paste error when share_button_visible was added.

Copy link
Contributor

@d7415 d7415 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like small patches :)

@kamil4 kamil4 merged commit 4072ca5 into master Feb 22, 2021
@delete-merged-branch delete-merged-branch bot deleted the public_photos_hidden branch February 22, 2021 18:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants