mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-28 01:56:01 -05:00
FIX: Topic map expansion broken without links.
This commit is contained in:
parent
a8f9ba7566
commit
89a96b9e94
1 changed files with 3 additions and 2 deletions
|
@ -33,11 +33,12 @@ Discourse.DiscourseTopicMapComponent = Ember.Component.extend({
|
|||
}.property('allLinksShown', 'topic.details.links'),
|
||||
|
||||
infoLinks: function() {
|
||||
if (Em.isNone('details.links')) return [];
|
||||
|
||||
var allLinks = this.get('details.links');
|
||||
if (Em.isNone(allLinks)) return [];
|
||||
|
||||
if (this.get('allLinksShown')) return allLinks;
|
||||
return allLinks.slice(0, LINKS_SHOWN);
|
||||
|
||||
}.property('details.links', 'allLinksShown'),
|
||||
|
||||
actions: {
|
||||
|
|
Loading…
Reference in a new issue