From 8b7a286a0fd03cfd832bdfcef2b911ac993d8801 Mon Sep 17 00:00:00 2001 From: Cameron Blandford Date: Wed, 15 Nov 2017 12:14:20 -0500 Subject: [PATCH] Fix typos in settings key accesses While the rest of collections has migrated to kebab case, for some reason these poor keys have been forgotten in the dust. This commit rescues them, giving them something warm to eat and apologizing for being so neglectful. --- app/components/section-title/component.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/components/section-title/component.js b/app/components/section-title/component.js index 3405f78a..61bcb435 100644 --- a/app/components/section-title/component.js +++ b/app/components/section-title/component.js @@ -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')}`);