Skip to content

Commit

Permalink
Fixed the mvc side
Browse files Browse the repository at this point in the history
  • Loading branch information
malikmasis committed Nov 23, 2022
1 parent 9c5fcf8 commit 36205eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
return new HtmlLocalizer(localizer);
}
}

<abp-script src="/Pages/FeatureManagement/feature-management-modal.js" />

<form method="post" asp-page="/FeatureManagement/FeatureManagementModal" data-script-class="abp.modals.FeatureManagement">
<abp-modal size="Large">
<abp-modal id="featureManagmentModal" size="Large">
<abp-modal-header title="@(L["Features"].Value)"></abp-modal-header>
@if (Model.FeatureListResultDto != null && Model.FeatureListResultDto.Groups.Any())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ var abp = abp || {};
abp.modals = abp.modals || {};

let l = abp.localization.getResource("AbpFeatureManagement");


abp.modals.FeatureManagement = function () {
abp.ResourceLoader.loadScript('/client-proxies/featureManagement-proxy.js');
$('#ResetToDefaults').click(function (e) {
Expand All @@ -16,6 +14,9 @@ var abp = abp || {};
volo.abp.featureManagement.features.delete(providerName, prodiverKey).then(function () {
abp.notify.success(l('ResetedToDefault'));
});
setTimeout(function () {
$('#featureManagmentModal').modal('hide');
}, 500);
}
});
});
Expand Down

0 comments on commit 36205eb

Please sign in to comment.