Skip to content

Commit

Permalink
Remove ConnectionStringsModal.js
Browse files Browse the repository at this point in the history
  • Loading branch information
maliming committed Feb 9, 2021
1 parent f2816f7 commit eb55d64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ public partial class TenantManagement
{
protected const string FeatureProviderName = "T";

protected bool HasManageConnectionStringsPermission;
protected bool HasManageFeaturesPermission;
protected string ManageConnectionStringsPolicyName;
protected string ManageFeaturesPolicyName;
Expand All @@ -30,7 +29,7 @@ public TenantManagement()
CreatePolicyName = TenantManagementPermissions.Tenants.Create;
UpdatePolicyName = TenantManagementPermissions.Tenants.Update;
DeletePolicyName = TenantManagementPermissions.Tenants.Delete;

ManageFeaturesPolicyName = TenantManagementPermissions.Tenants.ManageFeatures;

TenantInfo = new TenantInfoModel();
Expand All @@ -40,7 +39,6 @@ protected override async Task SetPermissionsAsync()
{
await base.SetPermissionsAsync();

HasManageConnectionStringsPermission = await AuthorizationService.IsGrantedAsync(ManageConnectionStringsPolicyName);
HasManageFeaturesPermission = await AuthorizationService.IsGrantedAsync(ManageFeaturesPolicyName);
}

Expand All @@ -53,10 +51,5 @@ protected override string GetDeleteConfirmationMessage(TenantDto entity)
public class TenantInfoModel
{
public Guid Id { get; set; }

public bool UseSharedDatabase { get; set; }

[Required]
public string DefaultConnectionString { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
@section scripts {
<abp-script-bundle name="@typeof(IndexModel).FullName">
<abp-script src="/Pages/FeatureManagement/feature-management-modal.js" />
<abp-script src="/Pages/TenantManagement/Tenants/ConnectionStringsModal.js" />
<abp-script src="/Pages/TenantManagement/Tenants/Index.js" />
</abp-script-bundle>
}
Expand Down

0 comments on commit eb55d64

Please sign in to comment.