-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(AppLogo): extend settings for appowner logo in applactionMetadata (
#297) * feat(AppLogo): extend settings for appowner logo in applactionMetadata * rename ShowAppOwnerInHeader to DisplayAppOwnerNameInHeader * Add test for logo config in application metadata
- Loading branch information
Showing
4 changed files
with
137 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using Altinn.Platform.Storage.Interface.Models; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
namespace Altinn.App.Core.Models | ||
{ | ||
/// <summary> | ||
/// The Logo configuration | ||
/// </summary> | ||
public class Logo | ||
{ | ||
/// <summary> | ||
/// A flag to specify that the form should display appOwner in header | ||
/// </summary> | ||
[JsonProperty(PropertyName = "displayAppOwnerNameInHeader")] | ||
public bool DisplayAppOwnerNameInHeader { get; set; } | ||
|
||
/// <summary> | ||
/// Specifies from where the logo url should be fetched | ||
/// </summary> | ||
[JsonProperty(PropertyName = "source")] | ||
public string? Source { get; set; } | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...App.Core.Tests/Internal/App/TestData/AppMetadata/logo-org-source.applicationmetadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"id": "tdd/bestilling", | ||
"org": "tdd", | ||
"created": "2019-09-16T22:22:22", | ||
"createdBy": "username", | ||
"title": { "nb": "Bestillingseksempelapp" }, | ||
"dataTypes": [ | ||
{ | ||
"id": "vedlegg", | ||
"allowedContentTypes": [ "application/pdf", "image/png", "image/jpeg" ], | ||
"minCount": 0, | ||
"taskId": "Task_1", | ||
}, | ||
{ | ||
"id": "ref-data-as-pdf", | ||
"allowedContentTypes": [ "application/pdf" ], | ||
"minCount": 1, | ||
"taskId": "Task_1", | ||
} | ||
], | ||
"partyTypesAllowed": { | ||
"bankruptcyEstate": true, | ||
"organisation": true, | ||
"person": true, | ||
"subUnit": true | ||
}, | ||
"onEntry": { | ||
"show": "select-instance", | ||
"instanceSelection": { | ||
"sortDirection": "desc", | ||
"rowsPerPageOptions": [5, 3, 10, 25, 50, 100], | ||
"defaultRowsPerPage": 1, | ||
"defaultSelectedOption": 3 | ||
} | ||
}, | ||
"logo": { | ||
"displayAppOwnerNameInHeader": true, | ||
"source": "org" | ||
} | ||
} |