+ {/* Show services to be deleted */}
+
+ {selectedServices.map((serviceId) => {
+ const service = filteredServices.find(
+ (s) => s.id === serviceId,
+ );
+ return service ? (
+
+
+ {service.type}
+
+ {service.name}
+
+ ) : null;
+ })}
+
+
+ {/* Volume deletion option for compose services */}
+ {(() => {
+ const servicesWithVolumeSupport =
+ selectedServices.filter((serviceId) => {
+ const service = filteredServices.find(
+ (s) => s.id === serviceId,
+ );
+ // Currently only compose services support volume deletion
+ return service?.type === "compose";
+ });
+
+ if (servicesWithVolumeSupport.length === 0)
+ return null;
+
+ return (
+
+
+
+ setDeleteVolumes(checked === true)
+ }
+ />
+
+
+
+ Volume deletion is available for:{" "}
+ {servicesWithVolumeSupport.length}{" "}
+ compose service
+ {servicesWithVolumeSupport.length !== 1
+ ? "s"
+ : ""}
+
+
+ );
+ })()}
+
+
+