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({
|
<%= ctx.makeTextInput({
|
||||||
text: 'Source',
|
text: 'Source',
|
||||||
name: 'source',
|
name: 'source',
|
||||||
|
value: ctx.post.source
|
||||||
}) %>
|
}) %>
|
||||||
</section>
|
</section>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
|
@ -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.');
|
||||||
|
|
Reference in a new issue