|
|
|
@ -1,5 +1,7 @@
|
|
|
|
|
const CoreView = require('backbone/core-view');
|
|
|
|
|
const ProfileContentView = require('dashboard/views/profile/profile-content/profile-content-view');
|
|
|
|
|
const PrivateHeaderView = require('dashboard/components/private-header-view');
|
|
|
|
|
const HeaderViewModel = require('dashboard/views/account/header-view-model');
|
|
|
|
|
const SupportView = require('dashboard/components/support-view');
|
|
|
|
|
const UpgradeMessage = require('dashboard/components/upgrade-message-view.js');
|
|
|
|
|
const FooterView = require('dashboard/components/footer/footer-view');
|
|
|
|
@ -28,6 +30,18 @@ module.exports = CoreView.extend({
|
|
|
|
|
|
|
|
|
|
_initViews: function () {
|
|
|
|
|
const $app = this.$('#app');
|
|
|
|
|
const featureFlags = this._userModel.get('feature_flags');
|
|
|
|
|
|
|
|
|
|
if (!featureFlags.includes('new-dashboard-feature')) {
|
|
|
|
|
const headerView = new PrivateHeaderView({
|
|
|
|
|
model: this._userModel,
|
|
|
|
|
configModel: this._configModel,
|
|
|
|
|
viewModel: new HeaderViewModel(),
|
|
|
|
|
organizationNotifications: this._organizationNotifications
|
|
|
|
|
});
|
|
|
|
|
$app.prepend(headerView.render().el);
|
|
|
|
|
this.addView(headerView);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this._userModel.get('account_type') === PERSONAL_30_ACCOUNT) {
|
|
|
|
|
const trialNotificationView = new TrialNotificationView({
|
|
|
|
|