diff --git a/images/actions/delete-active.svg b/images/actions/delete-active.svg
index f336ecd..bcbc96a 100644
--- a/images/actions/delete-active.svg
+++ b/images/actions/delete-active.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/images/actions/delete-inactive.svg b/images/actions/delete-inactive.svg
index 831a08c..49d1dbe 100644
--- a/images/actions/delete-inactive.svg
+++ b/images/actions/delete-inactive.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/images/blank.svg b/images/actions/detach_attach-inactive.svg
similarity index 100%
rename from images/blank.svg
rename to images/actions/detach_attach-inactive.svg
diff --git a/scripts/config.js b/scripts/config.js
index 5a90007..adfa2ba 100644
--- a/scripts/config.js
+++ b/scripts/config.js
@@ -137,18 +137,16 @@ function addDiskLine (fieldset, busPrefix, busName, device, diskDetails) {
let active = diskMetaData[type][busPrefix].actions.includes(element) ? "active" : "inactive"; // resize
action.src = `images/actions/${element}-${active}.svg`;
action.title = `${element.charAt(0).toUpperCase()}${element.slice(1)} Disk`;
- if (element === "move") {
- action.addEventListener("click", handleDiskMove);
- }
- else if (element === "resize") {
- action.addEventListener("click", handleDiskResize);
- }
- else if (element === "delete") {
- action.addEventListener("click", handleDiskDelete);
- }
- else { // entry does not support anything in this category, override the src and title for a blank tile
- action.src = "images/blank.svg";
- action.title = "";
+ if (active === "active") {
+ if (element === "move") {
+ action.addEventListener("click", handleDiskMove);
+ }
+ else if (element === "resize") {
+ action.addEventListener("click", handleDiskResize);
+ }
+ else if (element === "delete") {
+ action.addEventListener("click", handleDiskDelete);
+ }
}
}
action.dataset.disk = diskID;