mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Fixes static pages when permalinks are active.
fixes #2938 - Fix `page === 1` occurences - Fix ember logic
This commit is contained in:
parent
12ef319d73
commit
5eafa15b1b
1 changed files with 3 additions and 3 deletions
|
@ -5,16 +5,16 @@ var PostSettingsMenuController = Ember.ObjectController.extend({
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
if (arguments.length > 1) {
|
if (arguments.length > 1) {
|
||||||
this.set('page', val ? 1 : 0);
|
this.set('page', val);
|
||||||
|
|
||||||
return this.get('model').save().then(function () {
|
return this.get('model').save().then(function () {
|
||||||
self.notifications.showSuccess('Successfully converted to ' + (val ? 'static page' : 'post'));
|
self.notifications.showSuccess('Successfully converted to ' + (val ? 'static page' : 'post'));
|
||||||
|
|
||||||
return !!self.get('page');
|
return self.get('page');
|
||||||
}, this.notifications.showErrors);
|
}, this.notifications.showErrors);
|
||||||
}
|
}
|
||||||
|
|
||||||
return !!this.get('page');
|
return this.get('page');
|
||||||
}.property('page'),
|
}.property('page'),
|
||||||
|
|
||||||
newSlugBinding: Ember.computed.oneWay('slug'),
|
newSlugBinding: Ember.computed.oneWay('slug'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue