Browse Source

Fix graphql.

pull/715/head
Sebastian Stehle 5 years ago
parent
commit
81fea50a5e
  1. 1
      backend/src/Squidex.Domain.Apps.Entities/Contents/GraphQL/Types/Builder.cs
  2. 3
      backend/src/Squidex/Areas/Api/Controllers/Apps/Models/AppLanguagesDto.cs
  3. 2
      backend/tests/Squidex.Domain.Apps.Entities.Tests/Apps/DomainObject/AppDomainObjectTests.cs

1
backend/src/Squidex.Domain.Apps.Entities/Contents/GraphQL/Types/Builder.cs

@ -70,6 +70,7 @@ namespace Squidex.Domain.Apps.Entities.Contents.GraphQL.Types
Query = new AppQueriesGraphType(this, schemaInfos) Query = new AppQueriesGraphType(this, schemaInfos)
}; };
newSchema.RegisterType(SharedTypes.ComponentInterface);
newSchema.RegisterType(SharedTypes.ContentInterface); newSchema.RegisterType(SharedTypes.ContentInterface);
if (schemaInfos.Any()) if (schemaInfos.Any())

3
backend/src/Squidex/Areas/Api/Controllers/Apps/Models/AppLanguagesDto.cs

@ -29,8 +29,7 @@ namespace Squidex.Areas.Api.Controllers.Apps.Models
Items = config.Languages Items = config.Languages
.Select(x => AppLanguageDto.FromLanguage(x.Key, x.Value, config)) .Select(x => AppLanguageDto.FromLanguage(x.Key, x.Value, config))
.Select(x => x.CreateLinks(resources, app)) .Select(x => x.CreateLinks(resources, app))
.OrderByDescending(x => x.IsMaster) .OrderByDescending(x => x.IsMaster).ThenBy(x => x.Iso2Code)
.ThenBy(x => x.Iso2Code)
.ToArray() .ToArray()
}; };

2
backend/tests/Squidex.Domain.Apps.Entities.Tests/Apps/DomainObject/AppDomainObjectTests.cs

@ -144,7 +144,7 @@ namespace Squidex.Domain.Apps.Entities.Apps.DomainObject
{ {
var settings = new AppSettings var settings = new AppSettings
{ {
HideDateTimeQuickButtons = true HideDateTimeModeButton = true
}; };
var command = new UpdateAppSettings { Settings = settings }; var command = new UpdateAppSettings { Settings = settings };

Loading…
Cancel
Save