Skip to content

Commit

Permalink
Merge pull request #1185 from ironmansoftware/Copyright-Color-Fixes
Browse files Browse the repository at this point in the history
Copyright color fixes
  • Loading branch information
adamdriscoll authored Sep 26, 2019
2 parents f5cff47 + 81efece commit 9f49dfd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
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

0 comments on commit 9f49dfd

Please sign in to comment.