diff --git a/sys0-code/test/overview.php b/sys0-code/test/overview.php
index 30c8ce8..ad2f5b4 100644
--- a/sys0-code/test/overview.php
+++ b/sys0-code/test/overview.php
@@ -256,55 +256,7 @@ function updatePrinterData(data) {
}
if(printer.view==0 || printer.view==2){
-if (own_id == printer.userid || cancel_all == "1") {
- // Get the current iframe
- const iframe = printerCard.querySelector('iframe');
-
- // Store necessary iframe attributes if needed
- const iframeSrc = iframe ? iframe.src : null;
-
- // Remove iframe temporarily
- if (iframe) {
- printerCard.removeChild(iframe);
- }
-
- // Update the innerHTML, excluding the iframe initially
- printerCard.innerHTML = `
-
-
Drucker ${printer.printer_id}
-
-
-
-
-
-
-
- | Status | ${printerStatus} |
- | Genutzt von | ${printer.username} |
- | Filamentfarbe | ${printer.filament_color} |
- | Erwartete Druckzeit | ${printer.print_time_total} |
- | Verbleibende Druckzeit | ${printer.print_time_left} |
- | Vergangene Druckzeit | ${printer.print_time} |
- | Datei | ${printer.file} ${printer.full_file} |
-
- | Freigeben |
-
-
- `;
-
- // Create a new iframe element or use the existing one if it was stored
- const newIframe = document.createElement('iframe');
- newIframe.height = "230px";
- newIframe.scrolling = "no";
- newIframe.width = "100%";
- newIframe.src = iframeSrc ? iframeSrc : `/app/webcam.php?printer_id=${printer.printer_id}&username=&url=${printer.url}`;
-
- // Reattach the iframe at the placeholder
- const placeholder = printerCard.querySelector('#iframe-placeholder');
- placeholder.parentNode.replaceChild(newIframe, placeholder);
-}1~if (own_id == printer.userid || cancel_all == "1") {
+ if (own_id == printer.userid || cancel_all == "1") {
// Get the current iframe
const iframe = printerCard.querySelector('iframe');
@@ -353,6 +305,8 @@ if (own_id == printer.userid || cancel_all == "1") {
const placeholder = printerCard.querySelector('#iframe-placeholder');
placeholder.parentNode.replaceChild(newIframe, placeholder);
}
+
+
}else{
printerCard.innerHTML = `