mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Not passing correct title
through to share
This commit is contained in:
parent
4f671724cc
commit
973f4ee699
2 changed files with 4 additions and 2 deletions
|
@ -5,8 +5,10 @@ import computed from 'ember-addons/ember-computed-decorators';
|
|||
export default Ember.Controller.extend({
|
||||
needs: ['topic'],
|
||||
|
||||
title: Ember.computed.alias('controllers.topic.model.title'),
|
||||
|
||||
@computed('type', 'postNumber')
|
||||
title(type, postNumber) {
|
||||
shareTitle(type, postNumber) {
|
||||
if (type === 'topic') { return I18n.t('share.topic'); }
|
||||
if (postNumber) {
|
||||
return I18n.t('share.post', { postNumber });
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{{#if link}}
|
||||
<h3>{{title}}</h3>
|
||||
<h3>{{shareTitle}}</h3>
|
||||
|
||||
{{#if date}}
|
||||
<span class="date">{{displayDate}}</span>
|
||||
|
|
Loading…
Reference in a new issue