Link delete and report icons

This commit is contained in:
Alexandre Iooss 2022-03-01 21:38:58 +01:00
parent 84e96e2497
commit d2506a587d

View file

@ -34,6 +34,8 @@ class lgAdmin {
onAfterSlide(event) { onAfterSlide(event) {
const photoId = this.core.galleryItems[event.detail.index].slideName; const photoId = this.core.galleryItems[event.detail.index].slideName;
document.getElementById("lg-admin").href = `https://photos.crans.org/admin/photologue/photo/${photoId}/change/`; document.getElementById("lg-admin").href = `https://photos.crans.org/admin/photologue/photo/${photoId}/change/`;
document.getElementById("lg-delete").href = `https://photos.crans.org/admin/photologue/photo/${photoId}/delete/`;
document.getElementById("lg-report").href = `mailto:photos@crans.org?subject=[ABUS] Photo ${photoId}&body=${encodeURIComponent(window.location.href)}`;
} }
// Plugins must have destroy prototype // Plugins must have destroy prototype