Skip to content

Commit

Permalink
XtraDashboard: DashoardName is not localized #363
Browse files Browse the repository at this point in the history
  • Loading branch information
apobekiaris committed Apr 10, 2019
1 parent 5fe5f97 commit 8a13613
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using DevExpress.ExpressApp;
using DevExpress.ExpressApp.Editors;
using DevExpress.ExpressApp.Model;
using DevExpress.ExpressApp.Utils;
using DevExpress.ExpressApp.Xpo;
using Xpand.ExpressApp.Dashboard.BusinessObjects;
using Xpand.Persistent.Base.General;
Expand Down Expand Up @@ -88,10 +89,11 @@ public static class Extensions{
var exists = dashboard.DataSources.OfType<DashboardObjectDataSource>()
.Any(source => Equals(source.DataSource, typeWrapper.Type));
if (!exists){
var name = CaptionHelper.GetClassCaption(typeWrapper.Type.FullName);
var dataSource = new DashboardObjectDataSource{
DataSourceType = typeWrapper.Type,
Name = typeWrapper.Type.Name,
ComponentName = typeWrapper.Type.Name
Name = name,
ComponentName = name
};
dashboard.DataSources.Add(dataSource);
}
Expand Down

0 comments on commit 8a13613

Please sign in to comment.