mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-21 01:41:46 +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;
|