Browse Source
Merge pull request #14535 from abpframework/auto-merge/rel-6-0/1433
Merge branch dev with rel-6.0
pull/14536/head
liangshiwei
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
2 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateProjectBuilder.cs
|
|
|
@ -236,10 +236,14 @@ public class TemplateProjectBuilder : IProjectBuilder, ITransientDependency |
|
|
|
{ |
|
|
|
Logger.LogInformation("Theme: " + args.Theme); |
|
|
|
|
|
|
|
if (args.UiFramework == UiFramework.Angular && (args.Theme != AppTemplate.DefaultTheme || args.Theme != AppProTemplate.DefaultTheme)) |
|
|
|
var isProTemplate = !args.TemplateName.IsNullOrEmpty() && args.TemplateName.EndsWith("-pro", StringComparison.OrdinalIgnoreCase); |
|
|
|
|
|
|
|
if (args.UiFramework == UiFramework.Angular && ((isProTemplate && args.Theme != AppProTemplate.DefaultTheme) || |
|
|
|
(!isProTemplate && args.Theme != AppTemplate.DefaultTheme))) |
|
|
|
{ |
|
|
|
Logger.LogWarning("You may need to make some additional changes for this theme. " + |
|
|
|
"See the documentation for more information: https://docs.abp.io/en/abp/latest/UI/Angular/Theme-Configurations"); |
|
|
|
"See the documentation for more information: " + |
|
|
|
"https://docs.abp.io/en/abp/latest/UI/Angular/Theme-Configurations"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|