Open Closed

Features #2143


User avatar
0
paul.harriman created
  • ABP Framework version: v4.4.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I created a Feature that I only want edited/viewed in the Host. The Host will then enable certain Tenants for the Feature. Why when I click the Manage Host Features button (right most red box) do I see a tab for the feature EC2 (center red box) . The tab should not show. The row actions for each Tenant does show and it acts correctly ((left most red box) ).

    public override void Define(IFeatureDefinitionContext context)
    {
        var myGroup = context.AddGroup("Ec2");
       
        FeatureDefinition ec2Feature = myGroup.AddFeature("Ec2.ManageInstances", defaultValue: "false", displayName: L("EnableEc2"), valueType: new ToggleStringValueType());
        ec2Feature.IsAvailableToHost = false;
        ec2Feature.CreateChild("Ec2.AccessId", defaultValue: "", displayName: L("AccessId"), valueType: new FreeTextStringValueType(), isVisibleToClients: false, isAvailableToHost: false);
        ec2Feature.CreateChild("Ec2.Secret", defaultValue: "", displayName: L("Secret"), valueType: new FreeTextStringValueType(), isVisibleToClients: false, isAvailableToHost: false);
        ec2Feature.CreateChild("Ec2.Region", defaultValue: "", displayName: L("Region"), valueType: new FreeTextStringValueType(), isVisibleToClients: false, isAvailableToHost: false);

    }

1 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Hi, I investigated your situation, It's a unexpected behavior. We'll change that behavior, if there is no item to show, that menu won't be visible.

    Also your credit is refunded

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on April 16, 2025, 12:13