mirror of
https://github.com/gnmyt/myspeed.git
synced 2026-02-14 01:28:39 -06:00
The reset button in the password dialog now only appears if the password is set
This commit is contained in:
@@ -85,7 +85,7 @@ function DropdownComponent() {
|
||||
title: "Neues Passwort festlegen",
|
||||
placeholder: "Neues Passwort",
|
||||
type: "password",
|
||||
unsetButton: true,
|
||||
unsetButton: localStorage.getItem("password") != null,
|
||||
unsetButtonText: "Sperre aufheben",
|
||||
onClear: () => {
|
||||
fetch("/api/config/password", {headers: headers, method: "PATCH", body: JSON.stringify({value: "none"})})
|
||||
|
||||
Reference in New Issue
Block a user