diff --git a/themes-default/slim/views/schedule.mako b/themes-default/slim/views/schedule.mako index 5b0ae76ff4..3c5439faa8 100644 --- a/themes-default/slim/views/schedule.mako +++ b/themes-default/slim/views/schedule.mako @@ -13,25 +13,22 @@ const startVue = () => { store, el: '#vue-wrap', router, - computed: Object.assign( - store.mapState(['shows']), - { - header() { - return this.$route.meta.header; + computed: Object.assign(store.mapState(['shows']), { + header() { + return this.$route.meta.header; + }, + layout: { + get() { + const { config } = this; + return config.layout.schedule; }, - layout: { - get() { - const { config } = this; - return config.layout.schedule; - }, - set(layout) { - const { $store } = this; - const page = 'schedule'; - $store.dispatch('setLayout', { page, layout }); - } + set(layout) { + const { $store } = this; + const page = 'schedule'; + $store.dispatch('setLayout', { page, layout }); } } - ), + }), mounted() { const { $store, $route } = this; // $store.dispatch('getShows'); diff --git a/themes/dark/templates/schedule.mako b/themes/dark/templates/schedule.mako index 5b0ae76ff4..3c5439faa8 100644 --- a/themes/dark/templates/schedule.mako +++ b/themes/dark/templates/schedule.mako @@ -13,25 +13,22 @@ const startVue = () => { store, el: '#vue-wrap', router, - computed: Object.assign( - store.mapState(['shows']), - { - header() { - return this.$route.meta.header; + computed: Object.assign(store.mapState(['shows']), { + header() { + return this.$route.meta.header; + }, + layout: { + get() { + const { config } = this; + return config.layout.schedule; }, - layout: { - get() { - const { config } = this; - return config.layout.schedule; - }, - set(layout) { - const { $store } = this; - const page = 'schedule'; - $store.dispatch('setLayout', { page, layout }); - } + set(layout) { + const { $store } = this; + const page = 'schedule'; + $store.dispatch('setLayout', { page, layout }); } } - ), + }), mounted() { const { $store, $route } = this; // $store.dispatch('getShows'); diff --git a/themes/light/templates/schedule.mako b/themes/light/templates/schedule.mako index 5b0ae76ff4..3c5439faa8 100644 --- a/themes/light/templates/schedule.mako +++ b/themes/light/templates/schedule.mako @@ -13,25 +13,22 @@ const startVue = () => { store, el: '#vue-wrap', router, - computed: Object.assign( - store.mapState(['shows']), - { - header() { - return this.$route.meta.header; + computed: Object.assign(store.mapState(['shows']), { + header() { + return this.$route.meta.header; + }, + layout: { + get() { + const { config } = this; + return config.layout.schedule; }, - layout: { - get() { - const { config } = this; - return config.layout.schedule; - }, - set(layout) { - const { $store } = this; - const page = 'schedule'; - $store.dispatch('setLayout', { page, layout }); - } + set(layout) { + const { $store } = this; + const page = 'schedule'; + $store.dispatch('setLayout', { page, layout }); } } - ), + }), mounted() { const { $store, $route } = this; // $store.dispatch('getShows');