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

Commit

Permalink
Fix state of checkbox for visibility of share button
Browse files Browse the repository at this point in the history
  • Loading branch information
nagmat84 committed Nov 6, 2022
1 parent 1286b08 commit 0e02359
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/main/photo.js
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ photo.setProtectionPolicy = function (photoID) {
// users?
formElements.requires_link.checked = false;
formElements.is_downloadable.checked = album.json.is_downloadable;
formElements.is_share_button_visible = album.json.is_share_button_visible;
formElements.is_share_button_visible.checked = album.json.is_share_button_visible;
formElements.has_password.checked = album.json.has_password;
}
basicModal.hideActionButton();
Expand All @@ -685,7 +685,7 @@ photo.setProtectionPolicy = function (photoID) {
formElements.grants_full_photo.checked = lychee.full_photo;
formElements.requires_link.checked = lychee.public_photos_hidden;
formElements.is_downloadable.checked = lychee.downloadable;
formElements.is_share_button_visible = lychee.share_button_visible;
formElements.is_share_button_visible.checked = lychee.share_button_visible;
formElements.has_password.checked = false;
}
};
Expand Down

0 comments on commit 0e02359

Please sign in to comment.