mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 11:34:24 +03:00
16 lines
498 B
JavaScript
16 lines
498 B
JavaScript
|
/**
|
||
|
* All settings views other than the index should inherit from this base class.
|
||
|
* It ensures that the correct screen is showing when a mobile user navigates
|
||
|
* to a `settings.someRouteThatIsntIndex` route.
|
||
|
*/
|
||
|
|
||
|
var SettingsContentBaseView = Ember.View.extend({
|
||
|
tagName: 'section',
|
||
|
classNames: ['settings-content', 'fade-in'],
|
||
|
showContent: function () {
|
||
|
this.get('parentView').showSettingsContent();
|
||
|
}.on('didInsertElement')
|
||
|
});
|
||
|
|
||
|
export default SettingsContentBaseView;
|