From c11b3e33365dbaf5c8026795c6b56af1a6c5ac58 Mon Sep 17 00:00:00 2001 From: Diana Parrington Date: Tue, 28 Feb 2017 12:02:30 -0500 Subject: [PATCH] change stream to default at wqxr --- app/components/persistent-player/notification/component.js | 2 +- app/components/user-settings/component.js | 2 +- app/routes/index.js | 2 +- app/services/bumper-state.js | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/components/persistent-player/notification/component.js b/app/components/persistent-player/notification/component.js index b6658cc97..05a6af953 100644 --- a/app/components/persistent-player/notification/component.js +++ b/app/components/persistent-player/notification/component.js @@ -17,7 +17,7 @@ export default Ember.Component.extend({ return pref === 'default_stream'; }), preferredStream: computed('session.data.user-prefs-active-stream.slug', function(){ - const slug = get(this, 'session.data.user-prefs-active-stream.slug') || 'wnyc-fm939'; + const slug = get(this, 'session.data.user-prefs-active-stream.slug') || 'wqxr'; return get(this, 'store').peekRecord('stream', slug); }), classNames: ['notification', 'notification-active'], diff --git a/app/components/user-settings/component.js b/app/components/user-settings/component.js index c703bcd4d..addf4b426 100644 --- a/app/components/user-settings/component.js +++ b/app/components/user-settings/component.js @@ -13,7 +13,7 @@ export default Ember.Component.extend({ enableAutoplay: computed.equal('session.data.user-prefs-active-autoplay', 'no_autoplay'), activeStream: computed('session.data.user-prefs-active-stream.slug', function(){ let streams = this.get('streams'); - let currentStream = this.getWithDefault('session.data.user-prefs-active-stream', {slug: 'wnyc-fm939', name: 'WNYC 93.9 FM'}); + let currentStream = this.getWithDefault('session.data.user-prefs-active-stream', {slug: 'wqxr', name: 'WQXR New York'}); return streams.findBy('slug', currentStream.slug); }), diff --git a/app/routes/index.js b/app/routes/index.js index 2eea8a5d4..1fb30e7de 100644 --- a/app/routes/index.js +++ b/app/routes/index.js @@ -13,7 +13,7 @@ export default Ember.Route.extend(PlayParamMixin, { model() { let page = this.store.findRecord('django-page', '/'); - let featuredStream = this.store.findRecord('stream', 'wnyc-fm939'); + let featuredStream = this.store.findRecord('stream', 'wqxr'); return hash({page, featuredStream}); }, afterModel({ page }) { diff --git a/app/services/bumper-state.js b/app/services/bumper-state.js index ad882b28a..a5e90db03 100644 --- a/app/services/bumper-state.js +++ b/app/services/bumper-state.js @@ -50,7 +50,7 @@ export default Ember.Service.extend({ } }), autoplayChoice: computed('autoplayPref', 'autoplaySlug', function() { - const autoplaySlug = get(this, 'autoplaySlug') || 'wnyc-fm939'; + const autoplaySlug = get(this, 'autoplaySlug') || 'wqxr'; const autoplayPref = get(this, 'autoplayPref') || 'default_stream'; if (autoplayPref === 'default_stream') { let stream = get(this, 'store').peekRecord('stream', autoplaySlug); @@ -61,7 +61,7 @@ export default Ember.Service.extend({ }), getAutoplayAudioId() { - const autoplaySlug = get(this, 'autoplaySlug') || 'wnyc-fm939'; + const autoplaySlug = get(this, 'autoplaySlug') || 'wqxr'; const autoplayPref = get(this, 'autoplayPref') || 'default_stream'; if (autoplayPref === 'default_stream') { @@ -74,7 +74,7 @@ export default Ember.Service.extend({ }, getBumperUrl() { - const autoplaySlug = get(this, 'autoplaySlug') || 'wnyc-fm939'; + const autoplaySlug = get(this, 'autoplaySlug') || 'wqxr'; const autoplayPref = get(this, 'autoplayPref') || 'default_stream'; let nextItem;