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

Fix typos in settings key accesses #277

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
10 changes: 5 additions & 5 deletions app/components/section-title/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ export default Ember.Component.extend({
// otherwise, check if a background color has been specified.
// if so, use that. if not, use the branding background color
// if text color is specified, use that. otherwise, use branding text color
const bgColor = this.get('layout.background_color') ? this.get('layout.background_color') : this.get('branding.colors.background');
const bgImage = this.get('layout.img_url');
const bgColor = this.get('layout.background-color') ? this.get('layout.background_color') : this.get('branding.colors.background');
const bgImage = this.get('layout.img-url');
const bg = bgImage ? `background:url(${bgImage}) no-repeat left center; background-size: cover;` : `background-color:${bgColor};`;
let textColor = this.get('layout.text_color') ? this.get('layout.text_color') : this.get('branding.colors.text');
let textColor = this.get('layout.text-color') ? this.get('layout.text-color') : this.get('branding.colors.text');
textColor = `color:${textColor};`;
return Ember.String.htmlSafe(bg + textColor);
}),
titleColor: Ember.computed('layout', function() {
return Ember.String.htmlSafe(this.get('layout.title_color') ? `color: ${this.get('layout.title_color')};` : '');
return Ember.String.htmlSafe(this.get('layout.title-color') ? `color: ${this.get('layout.title-color')};` : '');
}),
taglineColor: Ember.computed('layout', function() {
return Ember.String.htmlSafe(this.get('layout.tagline_color') ? `color: ${this.get('layout.tagline_color')};` : '');
return Ember.String.htmlSafe(this.get('layout.tagline-color') ? `color: ${this.get('layout.tagline-color')};` : '');
}),
logoStyle: Ember.computed('branding.logo', function() {
return Ember.String.htmlSafe(`background-image: url(${this.get('branding.logo.url')}); height: ${this.get('branding.logo.height')}`);
Expand Down