0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Changed the public URL for sent email only post

refs https://github.com/TryGhost/Team/issues/954

- The URL for email-only posts is served with an `/email/` prefix, so it didn't make sense to show a regular URL in the PSM for such posts
This commit is contained in:
Naz 2021-08-13 17:47:02 +04:00
parent e21b898048
commit 148caaf06d

View file

@ -36,7 +36,11 @@
@focus-out={{action "updateSlug" this.slugValue}}
@stopEnterKeyDownPropagation={{true}} />
</div>
<GhUrlPreview @slug={{this.slugValue}} @tagName="p" @classNames="description" />
{{#if this.post.isSent}}
<GhUrlPreview @prefix="email" @slug={{this.slugValue}} @tagName="p" @classNames="description" />
{{else}}
<GhUrlPreview @slug={{this.slugValue}} @tagName="p" @classNames="description" />
{{/if}}
</div>
<div class="form-group">