Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Copyright color fixes #1185

Merged
merged 4 commits into from
Sep 26, 2019
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
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class UdFooter extends React.Component {
var fontColor = this.props.footer.fontColor ? this.props.footer.fontColor : this.props.fontColor;

return <footer className="page-footer ud-footer" style={{backgroundColor: backgroundColor, color: fontColor}}>
<div className="footer-copyright">
<div className="footer-copyright" style={{backgroundColor: backgroundColor, color: fontColor}}>>
<div className="container">
{this.props.footer.copyright}
<div className="right">
Expand Down
2 changes: 1 addition & 1 deletion src/UniversalDashboard/Cmdlets/NewFooterCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ protected override void EndProcessing()
var footer = new Footer();

footer.BackgroundColor = BackgroundColor?.HtmlColor;
footer.FontColor = BackgroundColor?.HtmlColor;
footer.FontColor = FontColor?.HtmlColor;
footer.Links = Links;
footer.Copyright = Copyright;

Expand Down
5 changes: 4 additions & 1 deletion src/UniversalDashboard/Models/Footer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ public class Footer : Component
{
[JsonProperty("links")]
public Hashtable[] Links { get; set; }

[JsonProperty("copyright")]
public string Copyright {get;set;}
[JsonProperty("title")]

[JsonProperty("backgroundColor")]
public string BackgroundColor {get;set;}

[JsonProperty("fontColor")]
public string FontColor {get;set;}

Expand Down