mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Merge pull request #3729 from rwjblue/ensure-author-in-psm-is-reset
Ensure PSM author is reset when changing posts.
This commit is contained in:
commit
3707993794
1 changed files with 6 additions and 2 deletions
|
@ -13,13 +13,17 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
|
|||
this.addObserver('titleScratch', this, 'titleObserver');
|
||||
}
|
||||
},
|
||||
selectedAuthor: Ember.computed(function () {
|
||||
|
||||
selectedAuthor: null,
|
||||
initializeSelectedAuthor: Ember.observer('model', function () {
|
||||
var self = this;
|
||||
|
||||
return this.get('author').then(function (author) {
|
||||
self.set('selectedAuthor', author);
|
||||
return author;
|
||||
});
|
||||
}),
|
||||
}).on('init'),
|
||||
|
||||
changeAuthor: function () {
|
||||
var author = this.get('author'),
|
||||
selectedAuthor = this.get('selectedAuthor'),
|
||||
|
|
Loading…
Add table
Reference in a new issue