Skip to content

Commit

Permalink
Fix to improve manage license page buttons and icons
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Oct 30, 2024
1 parent b36d8c3 commit 8d36372
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
24 changes: 17 additions & 7 deletions authentic-init.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,23 @@ sub get_button_style
if (string_contains($keys, 'ssl_gen')) {
$class = "grey ";
}
} elsif (string_contains($keys, "licence_manager") ||
string_contains($keys, "licence_manager_change") ||
string_contains($keys, "licence_manager_deregister") ||
string_contains($keys, "licence_recheck")) {
$icon = "virtualmin fa-1_15x margined-left--2 margined-top-1";
if (string_contains($keys, "licence_recheck")) {
$icon = "refresh fa-1_05x margined-left--2";
}
$class = "warning ";
if (string_contains($keys, "licence_manager_change")) {
$class = "success ";
$icon = "unlock fa-1_15x margined-left--2";
}
if (string_contains($keys, "licence_manager_deregister")) {
$class = "danger ";
$icon = "lock fa-1_15x margined-left--2";
}
} elsif (string_contains($keys, "user_createover")) {
$class = "warning ";
$icon = "user-switch fa-1_10x";
Expand Down Expand Up @@ -1257,13 +1274,6 @@ sub get_button_style
$icon = "times-circle-o";
} elsif (string_contains($keys, "wizard_end")) {
$icon = "virtualmin fa-1_05x";
} elsif (string_contains($keys, "licence_manager") ||
string_contains($keys, "licence_recheck")) {
$icon = "virtualmin fa-1_15x margined-left--2 margined-top-1";
if (string_contains($keys, "licence_recheck")) {
$icon = "refresh fa-1_05x margined-left--2";
}
$class = "warning ";
} elsif (string_contains($keys, "ticket_submit")) {
$icon = "question-circle";
} elsif (string_contains($keys, "trace_change")) {
Expand Down
2 changes: 1 addition & 1 deletion unauthenticated/js/bundle.min.js

Large diffs are not rendered by default.

Binary file modified unauthenticated/js/bundle.min.js.gz
Binary file not shown.

0 comments on commit 8d36372

Please sign in to comment.