Skip to content

Commit

Permalink
#7355 Minor improvement to preview button and code style
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyKulagin committed Nov 11, 2024
1 parent e71de0f commit b320af0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,22 @@ public partial class CommonModelFactory : ICommonModelFactory
protected readonly IActionContextAccessor _actionContextAccessor;
protected readonly IAuthenticationPluginManager _authenticationPluginManager;
protected readonly IBaseAdminModelFactory _baseAdminModelFactory;
protected readonly IBlogService _blogService;
protected readonly ICategoryService _categoryService;
protected readonly ICurrencyService _currencyService;
protected readonly ICustomerService _customerService;
protected readonly IEventPublisher _eventPublisher;
protected readonly INopDataProvider _dataProvider;
protected readonly IDateTimeHelper _dateTimeHelper;
protected readonly IEventPublisher _eventPublisher;
protected readonly IExchangeRatePluginManager _exchangeRatePluginManager;
protected readonly IHttpContextAccessor _httpContextAccessor;
protected readonly ILanguageService _languageService;
protected readonly ILocalizationService _localizationService;
protected readonly IMaintenanceService _maintenanceService;
protected readonly IManufacturerService _manufacturerService;
protected readonly IMeasureService _measureService;
protected readonly IMultiFactorAuthenticationPluginManager _multiFactorAuthenticationPluginManager;
protected readonly INewsService _newsService;
protected readonly INopDataProvider _dataProvider;
protected readonly INopFileProvider _fileProvider;
protected readonly IOrderService _orderService;
protected readonly IPaymentPluginManager _paymentPluginManager;
Expand All @@ -90,6 +94,7 @@ public partial class CommonModelFactory : ICommonModelFactory
protected readonly IStoreContext _storeContext;
protected readonly IStoreService _storeService;
protected readonly ITaxPluginManager _taxPluginManager;
protected readonly ITopicService _topicService;
protected readonly IUrlHelperFactory _urlHelperFactory;
protected readonly IUrlRecordService _urlRecordService;
protected readonly IWebHelper _webHelper;
Expand All @@ -98,11 +103,6 @@ public partial class CommonModelFactory : ICommonModelFactory
protected readonly MeasureSettings _measureSettings;
protected readonly NopHttpClient _nopHttpClient;
protected readonly ProxySettings _proxySettings;
protected readonly IBlogService _blogService;
protected readonly ICategoryService _categoryService;
protected readonly IManufacturerService _manufacturerService;
protected readonly INewsService _newsService;
protected readonly ITopicService _topicService;

#endregion

Expand All @@ -114,19 +114,23 @@ public CommonModelFactory(AppSettings appSettings,
IActionContextAccessor actionContextAccessor,
IAuthenticationPluginManager authenticationPluginManager,
IBaseAdminModelFactory baseAdminModelFactory,
IBlogService blogService,
ICategoryService categoryService,
ICurrencyService currencyService,
ICustomerService customerService,
IEventPublisher eventPublisher,
INopDataProvider dataProvider,
IDateTimeHelper dateTimeHelper,
INopFileProvider fileProvider,
IEventPublisher eventPublisher,
IExchangeRatePluginManager exchangeRatePluginManager,
IHttpContextAccessor httpContextAccessor,
ILanguageService languageService,
ILocalizationService localizationService,
IMaintenanceService maintenanceService,
IManufacturerService manufacturerService,
IMeasureService measureService,
IMultiFactorAuthenticationPluginManager multiFactorAuthenticationPluginManager,
INewsService newsService,
INopDataProvider dataProvider,
INopFileProvider fileProvider,
IOrderService orderService,
IPaymentPluginManager paymentPluginManager,
IPickupPluginManager pickupPluginManager,
Expand All @@ -140,26 +144,24 @@ public CommonModelFactory(AppSettings appSettings,
IStoreContext storeContext,
IStoreService storeService,
ITaxPluginManager taxPluginManager,
ITopicService topicService,
IUrlHelperFactory urlHelperFactory,
IUrlRecordService urlRecordService,
IWebHelper webHelper,
IWidgetPluginManager widgetPluginManager,
IWorkContext workContext,
MeasureSettings measureSettings,
NopHttpClient nopHttpClient,
ProxySettings proxySettings,
IBlogService blogService,
ICategoryService categoryService,
IManufacturerService manufacturerService,
INewsService newsService,
ITopicService topicService)
ProxySettings proxySettings)
{
_appSettings = appSettings;
_catalogSettings = catalogSettings;
_currencySettings = currencySettings;
_actionContextAccessor = actionContextAccessor;
_authenticationPluginManager = authenticationPluginManager;
_baseAdminModelFactory = baseAdminModelFactory;
_blogService = blogService;
_categoryService = categoryService;
_currencyService = currencyService;
_customerService = customerService;
_eventPublisher = eventPublisher;
Expand All @@ -170,8 +172,10 @@ public CommonModelFactory(AppSettings appSettings,
_languageService = languageService;
_localizationService = localizationService;
_maintenanceService = maintenanceService;
_measureService = measureService;
_manufacturerService = manufacturerService;
_measureService = measureService;
_multiFactorAuthenticationPluginManager = multiFactorAuthenticationPluginManager;
_newsService = newsService;
_fileProvider = fileProvider;
_orderService = orderService;
_paymentPluginManager = paymentPluginManager;
Expand All @@ -186,6 +190,7 @@ public CommonModelFactory(AppSettings appSettings,
_storeContext = storeContext;
_storeService = storeService;
_taxPluginManager = taxPluginManager;
_topicService = topicService;
_urlHelperFactory = urlHelperFactory;
_urlRecordService = urlRecordService;
_webHelper = webHelper;
Expand All @@ -194,11 +199,6 @@ public CommonModelFactory(AppSettings appSettings,
_measureSettings = measureSettings;
_nopHttpClient = nopHttpClient;
_proxySettings = proxySettings;
_blogService = blogService;
_categoryService = categoryService;
_manufacturerService = manufacturerService;
_newsService = newsService;
_topicService = topicService;
}

#endregion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Nop.Web.Areas.Admin.Models.Common;
using Nop.Web.Framework.Models;

namespace Nop.Web.Areas.Admin.Factories;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ else
<i class="far fa-eye"></i>
@T("Admin.Common.Preview")
</button>
<button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">&nbsp;</span>
</button>
<button type="button" class="btn btn-info dropdown-toggle dropdown-icon" data-toggle="dropdown" aria-expanded="false"></button>
<ul class="dropdown-menu" role="menu">
@foreach (var multistorePreview in Model)
{
Expand Down

0 comments on commit b320af0

Please sign in to comment.