1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-26 01:35:28 +03:00

More descriptive Reset Settings warning (#3147)

More descriptive Reset warning + Red button
This commit is contained in:
Vít Semrád 2022-12-16 02:07:29 +01:00 committed by GitHub
parent d70a7b3269
commit 96aeab67f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 2 deletions

View file

@ -6439,7 +6439,7 @@
"message": "Confirm" "message": "Confirm"
}, },
"dialogConfirmResetNote": { "dialogConfirmResetNote": {
"message": "WARNING: Are you sure you want to reset ALL settings to default?" "message": "WARNING: Are you sure you want to reset <strong>ALL settings</strong> to default? This is <strong>not</strong> a \"factory reset\". It may cause unexpected issues, and it may be necessary to re-flash your firmware to be able to connect again."
}, },
"dialogConfirmResetConfirm": { "dialogConfirmResetConfirm": {
"message": "Reset" "message": "Reset"

View file

@ -1567,6 +1567,35 @@ dialog {
color: var(--pushedButton-fontColor); color: var(--pushedButton-fontColor);
border-radius: 3px; border-radius: 3px;
} }
.danger-button {
-webkit-user-drag: none;
margin-top: 8px;
margin-bottom: 8px;
margin-right: 10px;
background-color: #e60000;
border-radius: 3px;
border: 1px solid #fe0000;
color: #fff;
font-weight: bold;
font-size: 12px;
text-shadow: 0 1px rgba(255, 255, 255, 0.25);
display: inline-block;
cursor: pointer;
transition: all ease 0.2s;
padding: 0 9px;
line-height: 28px;
user-select: none;
&:hover {
background-color: #f21212;
}
}
.danger-button.pushed {
background-color: #ff1b1b;
color: #fff;
border-radius: 3px;
}
.small { .small {
width: auto; width: auto;
position: relative; position: relative;

View file

@ -178,7 +178,7 @@
<div i18n="dialogConfirmResetNote" style="margin-top: 10px"></div> <div i18n="dialogConfirmResetNote" style="margin-top: 10px"></div>
</div> </div>
<div class="buttons"> <div class="buttons">
<a href="#" class="dialogConfirmReset-confirmbtn regular-button" i18n="dialogConfirmResetConfirm"></a> <a href="#" class="dialogConfirmReset-confirmbtn danger-button" i18n="dialogConfirmResetConfirm"></a>
<a href="#" class="dialogConfirmReset-cancelbtn regular-button" i18n="dialogConfirmResetClose"></a> <a href="#" class="dialogConfirmReset-cancelbtn regular-button" i18n="dialogConfirmResetClose"></a>
</div> </div>
</dialog> </dialog>