|
|
@ -5,6 +5,7 @@ |
|
|
// All rights reserved. Licensed under the MIT license.
|
|
|
// All rights reserved. Licensed under the MIT license.
|
|
|
// ==========================================================================
|
|
|
// ==========================================================================
|
|
|
|
|
|
|
|
|
|
|
|
using Squidex.Domain.Apps.Core.Assets; |
|
|
using Squidex.Domain.Apps.Core.Schemas; |
|
|
using Squidex.Domain.Apps.Core.Schemas; |
|
|
using Squidex.Domain.Apps.Entities.Schemas.Commands; |
|
|
using Squidex.Domain.Apps.Entities.Schemas.Commands; |
|
|
|
|
|
|
|
|
@ -21,7 +22,17 @@ namespace Squidex.Domain.Apps.Entities.Apps.Templates.Builders |
|
|
{ |
|
|
{ |
|
|
Properties<AssetsFieldProperties>(p => p with |
|
|
Properties<AssetsFieldProperties>(p => p with |
|
|
{ |
|
|
{ |
|
|
MustBeImage = true |
|
|
ExpectedType = AssetType.Image |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return this; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public AssetFieldBuilder MustBe(AssetType type) |
|
|
|
|
|
{ |
|
|
|
|
|
Properties<AssetsFieldProperties>(p => p with |
|
|
|
|
|
{ |
|
|
|
|
|
ExpectedType = type |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
return this; |
|
|
return this; |
|
|
|