Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Commit

Permalink
Merge pull request #184 from Financial-Times/remove-visitedStoriesOnT…
Browse files Browse the repository at this point in the history
…easer-flag

Remove `visitedStoriesOnTeaser` flag
  • Loading branch information
Sam Artuso authored Apr 27, 2018
2 parents 13a9567 + 1d5cf8a commit 3226ef5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/presenters/teaser-presenter.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,12 +428,6 @@ const TeaserPresenter = class TeaserPresenter {
return formattedDuration ? durationData : null;
}

get visited () {
if (this.data.flags && this.data.flags.visitedStoriesOnTeaser) {
return true;
}
}

};

module.exports = TeaserPresenter;
2 changes: 1 addition & 1 deletion templates/partials/title.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="o-teaser__heading {{#if @nTeaserPresenter.visited}}o-teaser__heading--visited{{/if}} js-teaser-heading">
<div class="o-teaser__heading js-teaser-heading">
<a
href="{{{relativeUrl}}}{{{referrerTracking}}}"
class="js-teaser-heading-link"
Expand Down

0 comments on commit 3226ef5

Please sign in to comment.