Browse Source

try fix account manage js

pull/2792/head
Yunus Emre Kalkan 7 years ago
parent
commit
302525aef1
  1. 9
      modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml
  2. 1
      modules/account/src/Volo.Abp.Account.Web/Volo.Abp.Account.Web.csproj

9
modules/account/src/Volo.Abp.Account.Web/Pages/Account/Manage.cshtml

@ -1,11 +1,12 @@
@page @page
@model Volo.Abp.Account.Web.Pages.Account.ManageModel @using Volo.Abp.Account.Web.Pages.Account
@using Volo.Abp.Identity.Settings @using Volo.Abp.Identity.Settings
@using Volo.Abp.Settings @using Volo.Abp.Settings
@using Volo.Abp.AspNetCore.Mvc.UI.Theming @using Volo.Abp.AspNetCore.Mvc.UI.Theming
@inject ISettingProvider SettingManager @inject ISettingProvider SettingManager
@inject IThemeManager ThemeManager @inject IThemeManager ThemeManager
@inherits Volo.Abp.Account.Web.Pages.Account.AccountPage @inherits Volo.Abp.Account.Web.Pages.Account.AccountPage
@model ManageModel
@{ @{
Layout = ThemeManager.CurrentTheme.GetApplicationLayout(); Layout = ThemeManager.CurrentTheme.GetApplicationLayout();
var isUserNameUpdateEnabled = string.Equals(await SettingManager.GetOrNullAsync(IdentitySettingNames.User.IsUserNameUpdateEnabled), "true", var isUserNameUpdateEnabled = string.Equals(await SettingManager.GetOrNullAsync(IdentitySettingNames.User.IsUserNameUpdateEnabled), "true",
@ -15,10 +16,12 @@
StringComparison.OrdinalIgnoreCase); StringComparison.OrdinalIgnoreCase);
} }
@section scripts { @section scripts {
<abp-script src="/Pages/Account/Manage.js" /> <abp-script-bundle name="@typeof(ManageModel).FullName">
<abp-script src="/Pages/Account/Manage.js" />
</abp-script-bundle>
} }
<abp-card> <abp-card>
<abp-card-body> <abp-card-body>
<abp-tabs tab-style="PillVertical"> <abp-tabs tab-style="PillVertical">
<abp-tab title="@L["ChangePassword"].Value"> <abp-tab title="@L["ChangePassword"].Value">
<h4>@L["ChangePassword"].Value</h4><hr /> <h4>@L["ChangePassword"].Value</h4><hr />

1
modules/account/src/Volo.Abp.Account.Web/Volo.Abp.Account.Web.csproj

@ -30,7 +30,6 @@
<Content Remove="Pages\**\*.js" /> <Content Remove="Pages\**\*.js" />
<Content Remove="Pages\**\*.css" /> <Content Remove="Pages\**\*.css" />
<Content Remove="Properties\launchSettings.json" /> <Content Remove="Properties\launchSettings.json" />
<None Remove="Pages\Account\Manage.js" />
<None Include="Properties\launchSettings.json" /> <None Include="Properties\launchSettings.json" />
</ItemGroup> </ItemGroup>

Loading…
Cancel
Save