Skip to content

Commit d87353c

Browse files
committed
ui(system): make initial reset prompt OK button warning-styled (btn-warning) and neutral cancel
1 parent 147ef25 commit d87353c

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/admin/views/system-reset.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ className: 'rubberBand animated',
3535
buttons: {
3636
confirm: {
3737
label: i18next.t('OK'),
38-
className: 'btn-success'
38+
className: 'btn-danger'
3939
},
4040
cancel: {
4141
label: i18next.t('Cancel'),
42-
className: 'btn-danger'
42+
className: 'btn-secondary'
4343
}
4444
},
4545
callback: function (result) {
@@ -56,6 +56,16 @@ className: 'btn-danger'
5656
title: i18next.t("Warning") + "!!!",
5757
message: i18next.t("This will reset the system data and will restart the system as a new install."),
5858
size: 'small',
59+
buttons: {
60+
confirm: {
61+
label: i18next.t('OK'),
62+
className: 'btn-danger'
63+
},
64+
cancel: {
65+
label: i18next.t('Cancel'),
66+
className: 'btn-secondary'
67+
}
68+
},
5969
callback: function (result) {
6070
if (result) {
6171
$.ajax({

0 commit comments

Comments
 (0)