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(OrganisationLogo): Add a size option for OrganisationLogo in app… #309

Merged
merged 1 commit into from
Sep 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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: 6 additions & 0 deletions src/Altinn.App.Core/Models/Logo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,11 @@ public class Logo
[JsonProperty(PropertyName = "source")]
public string? Source { get; set; }

/// <summary>
/// Specifies the size of the logo. Can have the values
/// 'small', 'medium', or 'large'
/// </summary>
[JsonProperty(PropertyName = "size")]
public string Size { get; set; } = "small";
}
}
3 changes: 2 additions & 1 deletion test/Altinn.App.Core.Tests/Internal/App/AppMedataTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@ public async Task GetApplicationMetadata_logo_can_intstantiate_with_source_and_D
Logo = new Logo
{
Source = "org",
DisplayAppOwnerNameInHeader = true
DisplayAppOwnerNameInHeader = true,
Size = "medium"
},
Features = enabledFrontendFeatures
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
},
"logo": {
"displayAppOwnerNameInHeader": true,
"source": "org"
"source": "org",
"size": "medium"
}
}
Loading