Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(AppLogo): extend settings for appowner logo in applactionMetadata #297

Merged
merged 3 commits into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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; }
mikaelrss marked this conversation as resolved.
Show resolved Hide resolved

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

}
}
Loading