Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #219 from nypublicradio/mwalsh/article-memory-issue
Browse files Browse the repository at this point in the history
rename article component to GothamistArticle
  • Loading branch information
walsh9 authored Aug 12, 2021
2 parents 853b037 + a08e24c commit c50ee5c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/Article.vue → components/GothamistArticle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ const {
} = require('~/mixins/helpers')
export default {
name: 'Article',
name: 'GothamistArticle',
components: {
VStreamfield: () => import('./VStreamfield'),
Breadcrumbs: () => import('./Breadcrumbs'),
Expand Down
4 changes: 2 additions & 2 deletions pages/_section/_article.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<Article
<GothamistArticle
:article="page"
:show-donate-banner="!cookies.donateBannerDismissed && cookies.articlesViewed >= 3"
/>
Expand All @@ -15,7 +15,7 @@ import gtm from '~/mixins/gtm'
export default {
name: 'Article',
components: {
Article: () => import('../../components/Article')
GothamistArticle: () => import('../../components/GothamistArticle')
},
mixins: [gtm],
async asyncData ({
Expand Down
4 changes: 2 additions & 2 deletions pages/preview.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div v-if="page">
<v-article
<gothamist-article
v-if="page.meta.type === 'news.ArticlePage'"
:article="page"
/>
Expand All @@ -25,7 +25,7 @@ import { fuzzyDateTime } from '~/mixins/helpers'
export default {
name: 'Preview',
components: {
VArticle: () => import('../components/Article'),
GothamistArticle: () => import('../components/GothamistArticle'),
InformationPage: () => import('../components/InformationPage'),
TagPage: () => import('../components/TagPage')
},
Expand Down

0 comments on commit c50ee5c

Please sign in to comment.