Thanks @rr-

This commit is contained in:
raku-cat 2018-12-27 03:22:36 -06:00
parent 1bfc7170b1
commit 36f6698b9b
No known key found for this signature in database
GPG key ID: 44754AA8A1A30711
2 changed files with 4 additions and 0 deletions

View file

@ -98,6 +98,7 @@
<%= ctx.makeTextInput({ <%= ctx.makeTextInput({
text: 'Source', text: 'Source',
name: 'source', name: 'source',
value: ctx.post.source
}) %> }) %>
</section> </section>
<% } %> <% } %>

View file

@ -147,6 +147,9 @@ class PostMainController extends BasePostController {
if (e.detail.thumbnail !== undefined) { if (e.detail.thumbnail !== undefined) {
post.newThumbnail = e.detail.thumbnail; post.newThumbnail = e.detail.thumbnail;
} }
if (e.detail.source !== undefined) {
post.source = e.detail.source;
}
post.save() post.save()
.then(() => { .then(() => {
this._view.sidebarControl.showSuccess('Post saved.'); this._view.sidebarControl.showSuccess('Post saved.');