hi cables
Can you try to upgrade to 7.3.x
and try again?
Thanks
Your question credit has been refunded.
hi
I will fix this. You can override the MobileNavbarViewComponent
to solve it now.
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using System.Linq;
using System.Threading.Tasks;
using Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX.Navigation;
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Toolbars;
using Volo.Abp.LeptonX.Shared;
using Volo.Abp.UI.Navigation;
using Volo.Abp.Users;
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX.Themes.LeptonX.Components.SideMenu.MobileNavbar;
public class MobileNavbarViewComponent : LeptonXViewComponentBase
{
protected IMenuManager MenuManager { get; }
protected ICurrentUser CurrentUser { get; }
protected IToolbarManager ToolbarManager { get; }
protected MenuViewModelProvider MenuViewModelProvider { get; }
public LeptonXThemeMvcOptions Options { get; }
public MobileNavbarViewComponent(
IMenuManager menuManager,
ICurrentUser currentUser,
IToolbarManager toolbarManager,
MenuViewModelProvider menuViewModelProvider,
IOptions<LeptonXThemeMvcOptions> options)
{
MenuManager = menuManager;
CurrentUser = currentUser;
ToolbarManager = toolbarManager;
MenuViewModelProvider = menuViewModelProvider;
Options = options.Value;
}
public virtual async Task<IViewComponentResult> InvokeAsync()
{
var mainMenu = await MenuViewModelProvider.GetMenuViewModelAsync();
var toolbar = await ToolbarManager.GetAsync(StandardToolbars.Main);
var leptonxToolbar = await ToolbarManager.GetAsync(LeptonXToolbars.MainMobile);
toolbar.Items.AddRange(leptonxToolbar.Items);
return View("~/Themes/LeptonX/Components/SideMenu/MobileNavbar/Default.cshtml", new MobileNavbarViewModel
{
UserMenu = await MenuManager.GetAsync(StandardMenus.User),
ProfileImageUrl = $"/api/account/profile-picture-file/{CurrentUser.Id}",
SelectedMenuItems = Options.MobileMenuSelector(mainMenu.Items.AsReadOnly()).Take(2).ToList(),
Toolbar = toolbar
});
}
}
hi
Can you use the latest 2.3.2
as Leptonx package version for all projects?
ok, I will continue to try.
hi
I will check and fix it on the 7.3 patch. Thanks.
hi
Add entities (see below)
I can't add entities by JSON
. Do you have another way to reproduce the exception?
SQLite Error 19: 'FOREIGN KEY constraint failed'.
It looks like there is a constraint problem with the data, you can check it first.