-
Notifications
You must be signed in to change notification settings - Fork 0
Fix inverted maintenance button labels in admin dashboard #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -342,7 +342,7 @@ function getThreatsByCountry() { | |||||||||
| <input type="hidden" name="toggle_action" value="toggle_frontend"> | ||||||||||
| <button type="submit" class="btn btn-sm <?= $frontendMaintenanceActive ? 'btn-success' : 'btn-warning' ?>"> | ||||||||||
| <i class="rex-icon fa-<?= $frontendMaintenanceActive ? 'play' : 'pause' ?>"></i> | ||||||||||
| <?= $frontendMaintenanceActive ? 'Aktivieren' : 'Wartung' ?> | ||||||||||
| <?= $frontendMaintenanceActive ? $addon->i18n('upkeep_deactivate') : $addon->i18n('upkeep_activate') ?> | ||||||||||
| </button> | ||||||||||
| </form> | ||||||||||
| <?php endif; ?> | ||||||||||
|
|
@@ -397,7 +397,7 @@ function getThreatsByCountry() { | |||||||||
| <input type="hidden" name="toggle_action" value="toggle_backend"> | ||||||||||
| <button type="submit" class="btn btn-sm <?= $backendMaintenanceActive ? 'btn-success' : 'btn-warning' ?>"> | ||||||||||
| <i class="rex-icon fa-<?= $backendMaintenanceActive ? 'play' : 'pause' ?>"></i> | ||||||||||
|
Comment on lines
398
to
399
|
||||||||||
| <button type="submit" class="btn btn-sm <?= $backendMaintenanceActive ? 'btn-success' : 'btn-warning' ?>"> | |
| <i class="rex-icon fa-<?= $backendMaintenanceActive ? 'play' : 'pause' ?>"></i> | |
| <button type="submit" class="btn btn-sm <?= $backendMaintenanceActive ? 'btn-warning' : 'btn-success' ?>"> | |
| <i class="rex-icon fa-<?= $backendMaintenanceActive ? 'pause' : 'play' ?>"></i> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The button styling and icon logic appear to be inverted. When maintenance is active, the button shows green (
btn-success) with a "play" icon, but this is inconsistent with the "Deactivate" text on line 345.For consistency with other parts of the codebase (e.g.,
pages/mail_security.badwords.phpline 553-554), when maintenance is active, it should show:btn-warning(yellow/orange)fa-pauseiconSuggested fix: