Fixed post edit button URL

no issues

- the edit button in the post list wasn't doing anything with an empty link
- now it has same URL as the post list item and it directs to its edit screen
This commit is contained in:
Sodbileg Gansukh 2023-10-02 17:41:51 +08:00 committed by Daniel Lockyer
parent edba377657
commit fa99608150
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD

View File

@ -206,7 +206,7 @@
</span> </span>
</a> </a>
{{else}} {{else}}
<LinkTo @route={{this.editorRoute}} @models={{array this.post.displayName this.post.id}} class="permalink gh-list-data gh-post-list-button" title=""> <LinkTo @route="editor.edit" @models={{array this.post.displayName this.post.id}} class="permalink gh-list-data gh-post-list-button" title="">
<span class="gh-post-list-cta edit {{if this.isHovered "is-hovered"}}" title="Go to Editor" data-ignore-select> <span class="gh-post-list-cta edit {{if this.isHovered "is-hovered"}}" title="Go to Editor" data-ignore-select>
{{svg-jar "pen" title="Go to Editor"}} {{svg-jar "pen" title="Go to Editor"}}
</span> </span>