Browse Source
Merge pull request #16459 from abpframework/liangshiwei/menu
Normalize ElementId for navigation menu items
pull/16467/head
Engincan VESKE
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.UI.Navigation/Volo/Abp/Ui/Navigation/ApplicationMenuGroup.cs
-
framework/src/Volo.Abp.UI.Navigation/Volo/Abp/Ui/Navigation/ApplicationMenuItem.cs
|
|
@ -68,7 +68,7 @@ public class ApplicationMenuGroup |
|
|
|
|
|
|
|
|
private string NormalizeElementId(string elementId) |
|
|
private string NormalizeElementId(string elementId) |
|
|
{ |
|
|
{ |
|
|
return elementId?.Replace(".", ""); |
|
|
return elementId?.Replace(".", "_"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public override string ToString() |
|
|
public override string ToString() |
|
|
|
|
|
@ -160,7 +160,7 @@ public class ApplicationMenuItem : IHasMenuItems, IHasSimpleStateCheckers<Applic |
|
|
|
|
|
|
|
|
private string NormalizeElementId(string elementId) |
|
|
private string NormalizeElementId(string elementId) |
|
|
{ |
|
|
{ |
|
|
return elementId?.Replace(".", ""); |
|
|
return elementId?.Replace(".", "_"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public override string ToString() |
|
|
public override string ToString() |
|
|
|