Implement customisations & login component Module API 1.11.0 (#32687)
* Update to Module API v1.11.0 Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Remove stale state field to make CQL happy Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Bump npm dep Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Improve coverage Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Improve coverage Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update comment Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -8,7 +8,12 @@ Please see LICENSE files in the repository root for full details.
|
||||
|
||||
import { type UIComponent } from "../../settings/UIFeature";
|
||||
import { ComponentVisibilityCustomisations } from "../ComponentVisibility";
|
||||
import { ModuleApi } from "../../modules/Api.ts";
|
||||
|
||||
export function shouldShowComponent(component: UIComponent): boolean {
|
||||
return ComponentVisibilityCustomisations.shouldShowComponent?.(component) ?? true;
|
||||
return (
|
||||
ModuleApi.instance.customisations.shouldShowComponent(component) ??
|
||||
ComponentVisibilityCustomisations.shouldShowComponent?.(component) ??
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user