diff --git a/bookwyrm/static/js/bookwyrm.js b/bookwyrm/static/js/bookwyrm.js
index aa06a8b0a..eddbfbee3 100644
--- a/bookwyrm/static/js/bookwyrm.js
+++ b/bookwyrm/static/js/bookwyrm.js
@@ -628,9 +628,8 @@ let BookWyrm = new (class {
}
function toggleStatus(status) {
- for (const child of statusNode.children) {
- BookWyrm.toggleContainer(child, !child.classList.contains(status));
- }
+ const template = document.querySelector(`#barcode-${status}`);
+ statusNode.replaceChildren(template ? template.content.cloneNode(true) : null);
}
function initBarcodes(cameraId = null) {
diff --git a/bookwyrm/templates/search/barcode_modal.html b/bookwyrm/templates/search/barcode_modal.html
index 70481b20a..519adfd3b 100644
--- a/bookwyrm/templates/search/barcode_modal.html
+++ b/bookwyrm/templates/search/barcode_modal.html
@@ -1,48 +1,46 @@
-{% extends 'components/modal.html' %}
-{% load i18n %}
-
-{% block modal-title %}
- {% blocktrans %}
- Scan Barcode
- {% endblocktrans %}
-{% endblock %}
-
-{% block modal-body %}
-
-
-
-
-
-
-
-
-
- {% trans "Requesting camera..." %}
- {% trans "Grant access to the camera to scan a book's barcode." %}
-
-
-
- Access denied
- {% trans "Could not access camera" %}
-
-
-
- {% trans "Scanning..." context "barcode scanner" %}
- {% trans "Align your book's barcode with the camera." %}
-
-
-
- {% trans "ISBN scanned" context "barcode scanner" %}
- {% trans "Searching for book:" context "followed by ISBN" %} ...
-
-
-{% endblock %}
-
-{% block modal-footer %}
-
-{% endblock %}
-
-
+{% extends 'components/modal.html' %}
+{% load i18n %}
+
+{% block modal-title %}
+ {% blocktrans %}
+ Scan Barcode
+ {% endblocktrans %}
+{% endblock %}
+
+{% block modal-body %}
+
+
+
+
+
+
+
+ {% trans "Requesting camera..." %}
+ {% trans "Grant access to the camera to scan a book's barcode." %}
+
+
+
+ Access denied
+ {% trans "Could not access camera" %}
+
+
+
+ {% trans "Scanning..." context "barcode scanner" %}
+ {% trans "Align your book's barcode with the camera." %}
+
+
+
+ {% trans "ISBN scanned" context "barcode scanner" %}
+ {% trans "Searching for book:" context "followed by ISBN" %} ...
+
+
+{% endblock %}
+
+{% block modal-footer %}
+
+{% endblock %}
+
+