Thanks @rr-
This commit is contained in:
parent
1bfc7170b1
commit
36f6698b9b
2 changed files with 4 additions and 0 deletions
|
@ -98,6 +98,7 @@
|
|||
<%= ctx.makeTextInput({
|
||||
text: 'Source',
|
||||
name: 'source',
|
||||
value: ctx.post.source
|
||||
}) %>
|
||||
</section>
|
||||
<% } %>
|
||||
|
|
|
@ -147,6 +147,9 @@ class PostMainController extends BasePostController {
|
|||
if (e.detail.thumbnail !== undefined) {
|
||||
post.newThumbnail = e.detail.thumbnail;
|
||||
}
|
||||
if (e.detail.source !== undefined) {
|
||||
post.source = e.detail.source;
|
||||
}
|
||||
post.save()
|
||||
.then(() => {
|
||||
this._view.sidebarControl.showSuccess('Post saved.');
|
||||
|
|
Reference in a new issue