mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-04 04:10:33 +03:00
Ensure PSM author is reset when changing posts.
This commit is contained in:
parent
474b9367dd
commit
4752fb77c9
@ -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…
Reference in New Issue
Block a user