Skip to content

A live bird collage card for your Home Assistant dashboard.

Only Flickr does blacklisting

frederikcea5dbfd9741
diff --git a/scripts/overview.php b/scripts/overview.php
index d5ccca9c..7afc75e4 100644
--- a/scripts/overview.php
+++ b/scripts/overview.php
@@ -267,7 +267,7 @@ if (get_included_files()[0] === __FILE__) {
<h1 id="modalHeading"></h1>
<p id="modalText"></p>
<button onclick="hideDialog()">Close</button>
- <button style="font-weight:bold;color:blue" onclick="if(confirm('Are you sure you want to blacklist this image?')) { blacklistImage(); }">Blacklist this image</button>
+ <button style="font-weight:bold;color:blue" onclick="if(confirm('Are you sure you want to blacklist this image?')) { blacklistImage(); }" <?php if($config["IMAGE_PROVIDER"] === 'WIKIPEDIA'){ echo 'hidden';} ?> >Blacklist this image</button>
</dialog>
<script src="static/dialog-polyfill.js"></script>
<script src="static/Chart.bundle.js"></script>
diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php
index efa5a9b6..f7e132d7 100644
--- a/scripts/todays_detections.php
+++ b/scripts/todays_detections.php
@@ -344,7 +344,7 @@ if (get_included_files()[0] === __FILE__) {
<h1 id="modalHeading"></h1>
<p id="modalText"></p>
<button style="font-weight:bold;color:blue" onclick="hideDialog()">Close</button>
- <button style="font-weight:bold;color:blue" onclick="if(confirm('Are you sure you want to blacklist this image?')) { blacklistImage(); }">Blacklist this image</button>
+ <button style="font-weight:bold;color:blue" onclick="if(confirm('Are you sure you want to blacklist this image?')) { blacklistImage(); }" <?php if($config["IMAGE_PROVIDER"] === 'WIKIPEDIA'){ echo 'hidden';} ?> >Blacklist this image</button>
</dialog>
<script src="static/dialog-polyfill.js"></script>
<script src="static/Chart.bundle.js"></script>