feat: Add confirmation prompt for 'Systemzeit übernehmen' button
- Added window.confirm to the "Systemzeit übernehmen" button to confirm before applying the system time change. - Ensured user confirmation before updating the system time.
This commit is contained in:
@@ -266,7 +266,15 @@ function SettingModal({ showModal, onClose }) {
|
||||
<div className="flex w-full mt-1 justify-end">
|
||||
<button
|
||||
className="bg-blue-500 text-white px-4 py-2 rounded"
|
||||
onClick={() => console.log("Systemzeit übernehmen")}
|
||||
onClick={() => {
|
||||
if (
|
||||
window.confirm(
|
||||
"Möchten Sie wirklich die Systemzeit übernehmen?"
|
||||
)
|
||||
) {
|
||||
setSystemUhr(new Date().toLocaleString());
|
||||
}
|
||||
}}
|
||||
>
|
||||
Systemzeit übernehmen
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user