Add a warning notice when ejecting removable media (#526)

This commit is contained in:
Daniel Markstedt 2021-12-19 15:47:03 -08:00 committed by GitHub
parent 7efa895239
commit 29cf58288f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@
<td style="text-align:center"> <td style="text-align:center">
{% if device.device_type != "-" %} {% if device.device_type != "-" %}
{% if device.device_type in REMOVABLE_DEVICE_TYPES and "No Media" not in device.status %} {% if device.device_type in REMOVABLE_DEVICE_TYPES and "No Media" not in device.status %}
<form action="/scsi/eject" method="post" onsubmit="return confirm('Eject Disk?')"> <form action="/scsi/eject" method="post" onsubmit="return confirm('Eject Disk? WARNING: On Mac OS, eject the Disk in Finder instead!')">
<input name="scsi_id" type="hidden" value="{{ device.id }}"> <input name="scsi_id" type="hidden" value="{{ device.id }}">
<input name="unit" type="hidden" value="{{ device.unit }}"> <input name="unit" type="hidden" value="{{ device.unit }}">
<input type="submit" value="Eject"> <input type="submit" value="Eject">