diff --git a/app/assets/javascripts/admin/addon/components/admin-config-area-sidebar-experiment.js b/app/assets/javascripts/admin/addon/components/admin-config-area-sidebar-experiment.js index 1425896d195..14e46c70eed 100644 --- a/app/assets/javascripts/admin/addon/components/admin-config-area-sidebar-experiment.js +++ b/app/assets/javascripts/admin/addon/components/admin-config-area-sidebar-experiment.js @@ -12,7 +12,7 @@ import { ADMIN_PANEL } from "discourse/lib/sidebar/panels"; // TODO (martin) (2024-02-01) Remove this experimental UI. export default class AdminConfigAreaSidebarExperiment extends Component { - @service adminSidebarExperimentStateManager; + @service adminSidebarStateManager; @service toasts; @service router; @tracked editedNavConfig; @@ -46,7 +46,7 @@ export default class AdminConfigAreaSidebarExperiment extends Component { @action loadDefaultNavConfig() { - const savedConfig = this.adminSidebarExperimentStateManager.navConfig; + const savedConfig = this.adminSidebarStateManager.navConfig; this.editedNavConfig = savedConfig ? JSON.stringify(savedConfig, null, 2) : this.defaultAdminNav; @@ -116,7 +116,7 @@ export default class AdminConfigAreaSidebarExperiment extends Component { } #saveConfig(config) { - this.adminSidebarExperimentStateManager.navConfig = config; + this.adminSidebarStateManager.navConfig = config; resetPanelSections( ADMIN_PANEL, useAdminNavConfig(config), diff --git a/app/assets/javascripts/admin/addon/components/admin-plugins-list-item.gjs b/app/assets/javascripts/admin/addon/components/admin-plugins-list-item.gjs index 7c90536bc4b..422c92ff82a 100644 --- a/app/assets/javascripts/admin/addon/components/admin-plugins-list-item.gjs +++ b/app/assets/javascripts/admin/addon/components/admin-plugins-list-item.gjs @@ -14,6 +14,7 @@ import PluginCommitHash from "./plugin-commit-hash"; export default class AdminPluginsListItem extends Component { @service session; @service currentUser; + @service sidebarState; @action async togglePluginEnabled(plugin) { @@ -30,9 +31,22 @@ export default class AdminPluginsListItem extends Component { } } + get isAdminSearchFiltered() { + if (!this.sidebarState.filter) { + return false; + } + return this.args.plugin.nameTitleizedLower.match(this.sidebarState.filter); + } +