Skip to content

Commit db08e11

Browse files
authored
Update external-services.js
1 parent 32a22ab commit db08e11

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

config/var/www/admin/control-panel/external-services/external-services.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,11 @@ export class ExternalServicesManager {
585585
// Wire up toggle all button
586586
const toggleBtn = categoryHeader.querySelector(".category-toggle-all-btn");
587587
if (!toggleBtn) {
588-
console.error(`Toggle button (.category-toggle-all-btn) not found for category: ${category}. This indicates a UI rendering issue. Please check the createSettingsCategoryHeader method.`);
588+
console.error(`Toggle control is unavailable for category: ${category}.`, {
589+
category,
590+
missingElement: ".category-toggle-all-btn",
591+
component: "ExternalServicesManager.createSettingsCategorySection"
592+
});
589593
return categorySection;
590594
}
591595
const areAllCategoryServicesEnabled = () => categoryCheckboxes.every(cb => cb.checked);
@@ -914,9 +918,8 @@ export class ExternalServicesManager {
914918
let iconName = null;
915919

916920
for (const part of parts) {
917-
// Font Awesome style prefixes: shorthand (far/fas/fab/fad/fal/fat) and longhand (fa-regular/fa-solid/fa-brands/fa-duotone/fa-light/fa-thin)
918-
// /^fa[rsbdlt]$/ maps to: far (regular), fas (solid), fab (brands), fad (duotone), fal (light), fat (thin).
919-
// Match FA shorthand style prefix tokens exactly (far, fas, fab, fad, fal, fat).
921+
// /^fa[rsbdlt]$/ maps to: far (regular), fas (solid), fab (brands), fad (duotone), fal (light), fat (thin), and matches only exact 3-character tokens.
922+
// Because of ^...$ anchors, longer strings like "far-extra" do not match; only exact tokens (far, fas, fab, fad, fal, fat) are accepted.
920923
if (FA_STYLE_PREFIX_SHORT_PATTERN.test(part) || FA_STYLE_PREFIX_LONG_PATTERN.test(part)) {
921924
stylePrefix = part;
922925
continue;

0 commit comments

Comments
 (0)