Skip to content

Commit 96aeab6

Browse files
authored
More descriptive Reset Settings warning (#3147)
More descriptive Reset warning + Red button
1 parent d70a7b3 commit 96aeab6

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

locales/en/messages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6439,7 +6439,7 @@
64396439
"message": "Confirm"
64406440
},
64416441
"dialogConfirmResetNote": {
6442-
"message": "WARNING: Are you sure you want to reset ALL settings to default?"
6442+
"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."
64436443
},
64446444
"dialogConfirmResetConfirm": {
64456445
"message": "Reset"

src/css/main.less

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,6 +1567,35 @@ dialog {
15671567
color: var(--pushedButton-fontColor);
15681568
border-radius: 3px;
15691569
}
1570+
1571+
.danger-button {
1572+
-webkit-user-drag: none;
1573+
margin-top: 8px;
1574+
margin-bottom: 8px;
1575+
margin-right: 10px;
1576+
background-color: #e60000;
1577+
border-radius: 3px;
1578+
border: 1px solid #fe0000;
1579+
color: #fff;
1580+
font-weight: bold;
1581+
font-size: 12px;
1582+
text-shadow: 0 1px rgba(255, 255, 255, 0.25);
1583+
display: inline-block;
1584+
cursor: pointer;
1585+
transition: all ease 0.2s;
1586+
padding: 0 9px;
1587+
line-height: 28px;
1588+
user-select: none;
1589+
&:hover {
1590+
background-color: #f21212;
1591+
}
1592+
}
1593+
.danger-button.pushed {
1594+
background-color: #ff1b1b;
1595+
color: #fff;
1596+
border-radius: 3px;
1597+
}
1598+
15701599
.small {
15711600
width: auto;
15721601
position: relative;

src/tabs/setup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ <h3 i18n="dialogConfirmResetTitle"></h3>
178178
<div i18n="dialogConfirmResetNote" style="margin-top: 10px"></div>
179179
</div>
180180
<div class="buttons">
181-
<a href="#" class="dialogConfirmReset-confirmbtn regular-button" i18n="dialogConfirmResetConfirm"></a>
181+
<a href="#" class="dialogConfirmReset-confirmbtn danger-button" i18n="dialogConfirmResetConfirm"></a>
182182
<a href="#" class="dialogConfirmReset-cancelbtn regular-button" i18n="dialogConfirmResetClose"></a>
183183
</div>
184184
</dialog>

0 commit comments

Comments
 (0)