Hi,
Sorry, Can you explain it in detail? thanks.
Hi,
The dynamic API proxy needs to get API definitions from the gateway.
You can try access to https://localhost:44325/api/abp/api-definition
to check it.
You may need to add the Http.Api
project reference to the gateway project and add Module
class dependencies.
Some info may help:https://support.abp.io/QA/Questions/3920/Commercial-Micro-Service-Project---Error-when-using-dynamicaly-proxied-clients-over-gateways#answer-a13bcfe6-0bbe-9aa4-e5de-3a0717381d5b
I will check it out
Hi,
We will fix it in the next patch version:
You can try this:
MyUserManagement.razor.cs
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(UserManagement))]
public partial class MyUserManagement : UserManagement
{
protected override async Task OnInitializedAsync()
{
await SetPermissionsAsync();
await SetEntityActionsAsync();
await SetTableColumnsAsync();
await InvokeAsync(StateHasChanged);
Roles = (await AppService.GetAssignableRolesAsync()).Items;
RequireConfirmedEmail = await SettingProvider.IsTrueAsync(IdentitySettingNames.SignIn.RequireConfirmedEmail);
}
protected virtual async Task OnAdvancedFilterSectionClick()
{
ShowAdvancedFilters = !ShowAdvancedFilters;
if (ShowAdvancedFilters)
{
await GetOrganizationUnitsAsync();
}
}
}
MyUserManagement.razor
https://gist.github.com/realLiangshiwei/bc88b4c7a9b1d7757084da05f179e5fe
Hi,
Yes, we will fix it in the next patch version. (7.0.2)
Hi,
We have FQA about this, you can see: https://commercial.abp.io/faq#what-happens-when-license-ends
Hi,
Could you provide steps to reproduce the issue? thanks.
Related question: https://support.abp.io/QA/Questions/4458
Hi,
Sorry, that is my fault. I copied the wrong content. style-initializer.js should be :
(function () {
function isAlreadyLoaded(id) {
return document.querySelector(`link[id^="lpx-theme-${id}-"]`)?.id;
}
function loadThemeCSS(key, event, cssPrefix) {
const newThemeId = createId(event.detail.theme, key);
const previousThemeId = createId(event.detail.previousTheme, key);
const loadedCSS = isAlreadyLoaded(key);
if (newThemeId !== loadedCSS) {
leptonx.replaceStyleWith(
createStyleUrl(cssPrefix + event.detail.theme),
newThemeId,
previousThemeId || loadedCSS
);
}
}
function createId(theme, type) {
return theme && `lpx-theme-${type}-${theme}`;
}
window.initLeptonX = function (layout = currentLayout, defaultStyle = "dim") {
window.currentLayout = layout;
leptonx.globalConfig.defaultSettings =
{
appearance: defaultStyle,
containerWidth: 'full',
};
leptonx.CSSLoadEvent.on(event => {
loadThemeCSS('bootstrap', event, 'bootstrap-');
loadThemeCSS('color', event, '');
});
leptonx.init.run();
}
const oldAfterLeptonXInitialization = window.afterLeptonXInitialization;
window.afterLeptonXInitialization = function () {
if(oldAfterLeptonXInitialization){
oldAfterLeptonXInitialization();
}
}
function createStyleUrl(theme, type) {
if (isRtl()) {
theme = theme + '.rtl';
}
if (type) {
return `_content/Volo.Abp.AspNetCore.Components.Web.LeptonXTheme/${window.currentLayout}/css/${type}-${theme}.css`
}
return `_content/Volo.Abp.AspNetCore.Components.Web.LeptonXTheme/${window.currentLayout}/css/${theme}.css`;
}
function isRtl() {
return document.documentElement.getAttribute('dir') === 'rtl';
}
})();