Skip to content

Commit

Permalink
Set red background in prod for field creator
Browse files Browse the repository at this point in the history
  • Loading branch information
tprouvot committed Oct 23, 2024
1 parent bfcbaab commit cff5c21
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion addon/field-creator.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ body {
background-image: url(images/lightning_blue_background.png);
background-repeat: no-repeat;
background-size: contain;
background-position: 0px 48px;}
background-position: 0px 48px;
}
.prod {
background-color: #e0a4b5;
background-image: url(images/lightning_red_background.png);
}
#user-info {
background: #f7f9fb;
height: 48px;
Expand Down
5 changes: 5 additions & 0 deletions addon/field-creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,11 @@ class App extends React.Component {
userInfo: "...",
filteredObjects: []
};
let trialExpDate = localStorage.getItem(sfHost + "_trialExpirationDate");
if (localStorage.getItem(sfHost + "_isSandbox") != "true" && (!trialExpDate || trialExpDate === "null")) {
//change background color for production
document.body.classList.add("prod");
}
}

componentDidMount() {
Expand Down

0 comments on commit cff5c21

Please sign in to comment.