From 53c4c132fc566ce0a65500097fdf042f12a36b27 Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Wed, 13 Mar 2019 15:30:51 +0000 Subject: [PATCH] Fixed ember resolver warning for ambiguous `authorNames` access no issue - we've added an `{{author-names}}` helper, this generated a warning from `{{gh-posts-list-item}}` which contained `{{authorNames}}` referencing a CP on the component context - changing the CP access to be explicit using `{{this.authorNames}}` resolves the warning - updated other references in the template to be explicit in order to differentiate between local context and helpers (this will be enforced in later Ember versions) --- .../components/gh-posts-list-item.hbs | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/app/templates/components/gh-posts-list-item.hbs b/app/templates/components/gh-posts-list-item.hbs index ca1dd9c8d3..b12be90cd0 100644 --- a/app/templates/components/gh-posts-list-item.hbs +++ b/app/templates/components/gh-posts-list-item.hbs @@ -1,34 +1,38 @@ -

{{#link-to "editor.edit" post.displayName post.id class="permalink" title="Edit this post"}}{{post.title}}{{/link-to}}

-

{{subText}}

+

+ {{#link-to "editor.edit" this.post.displayName this.post.id class="permalink" title="Edit this post"}} + {{this.post.title}} + {{/link-to}} +

+

{{this.subText}}

- {{#if isPage}} + {{#if this.isPage}} Page {{/if}} - {{#if isScheduled}} + {{#if this.isScheduled}} Scheduled {{/if}} - {{#if isDraft}} + {{#if this.isDraft}} Draft {{/if}} - {{#if isFeatured}} + {{#if this.isFeatured}} Featured {{/if}} - {{#if (and isPublished (not post.page))}} + {{#if (and this.isPublished (not this.post.page))}} Published {{/if}} - by — + by — - {{#if isPublished}} - {{gh-format-post-time post.publishedAtUTC published=true}} + {{#if this.isPublished}} + {{gh-format-post-time this.post.publishedAtUTC published=true}} {{else if isScheduled}} - Will go live {{gh-format-post-time post.publishedAtUTC scheduled=true}} + Will go live {{gh-format-post-time this.post.publishedAtUTC scheduled=true}} {{else}} - Last edited {{gh-format-post-time post.updatedAtUTC draft=true}} + Last edited {{gh-format-post-time this.post.updatedAtUTC draft=true}} {{/if}}