Skip to content

Commit

Permalink
feat(AppLogo): extend settings for appowner logo in applactionMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mikaelrss committed Aug 28, 2023
1 parent 9d441d6 commit 550e290
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Altinn.App.Core/Models/ApplicationMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ public ApplicationMetadata(string id)
public AppIdentifier AppIdentifier { get; private set; }

/// <summary>
/// A flag to specify that the form should use a custom logo
/// Configure options for setting organisation logo
/// </summary>
[JsonProperty(PropertyName = "useCustomLogo")]
public bool UseCustomLogo { get; set; }
[JsonProperty(PropertyName = "logo")]
public Logo? Logo { get; set; }
}
}
25 changes: 25 additions & 0 deletions src/Altinn.App.Core/Models/Logo.cs
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 = "showAppOwnerInHeader")]
public bool ShowAppOwnerInHeader { get; set; }

/// <summary>
/// Specifies from where the logo url should be fetched
/// </summary>
[JsonProperty(PropertyName = "source")]
public string? Source { get; set; }

}
}

0 comments on commit 550e290

Please sign in to comment.