diff --git a/app/assets/javascripts/discourse/components/create-topics-notice.js.es6 b/app/assets/javascripts/discourse/components/create-topics-notice.js.es6 index fd4e09bf49a..5a7aaf1a747 100644 --- a/app/assets/javascripts/discourse/components/create-topics-notice.js.es6 +++ b/app/assets/javascripts/discourse/components/create-topics-notice.js.es6 @@ -36,7 +36,10 @@ export default Ember.Component.extend({ @computed() shouldSee() { - return Discourse.User.currentProp('admin') && this.siteSettings.show_create_topics_notice; + const user = this.currentUser; + return user && user.get('admin') && + this.siteSettings.show_create_topics_notice && + !this.site.get('wizard_required'); }, @computed('enabled', 'shouldSee', 'publicTopicCount', 'publicPostCount') diff --git a/app/assets/javascripts/discourse/components/global-notice.js.es6 b/app/assets/javascripts/discourse/components/global-notice.js.es6 index 0e76a27e32a..50132cf5cab 100644 --- a/app/assets/javascripts/discourse/components/global-notice.js.es6 +++ b/app/assets/javascripts/discourse/components/global-notice.js.es6 @@ -17,6 +17,10 @@ export default Ember.Component.extend(StringBuffer, { notices.push([I18n.t("emails_are_disabled"), 'alert-emails-disabled']); } + if (this.site.get('wizard_required')) { + notices.push([I18n.t('wizard_required'), 'alert-wizard']); + } + if (this.currentUser && this.currentUser.get('staff') && this.siteSettings.bootstrap_mode_enabled) { if (this.siteSettings.bootstrap_mode_min_users > 0) { notices.push([I18n.t("bootstrap_mode_enabled", {min_users: this.siteSettings.bootstrap_mode_min_users}), 'alert-bootstrap-mode']); diff --git a/app/assets/javascripts/wizard/components/wizard-step.js.es6 b/app/assets/javascripts/wizard/components/wizard-step.js.es6 index 079b333cff7..39af7c43aa9 100644 --- a/app/assets/javascripts/wizard/components/wizard-step.js.es6 +++ b/app/assets/javascripts/wizard/components/wizard-step.js.es6 @@ -9,6 +9,9 @@ export default Ember.Component.extend({ this.autoFocus(); }, + @computed('step.index') + showQuitButton: index => index === 0, + @computed('step.displayIndex', 'wizard.totalSteps') showNextButton: (current, total) => current < total, @@ -49,6 +52,10 @@ export default Ember.Component.extend({ }, actions: { + quit() { + document.location = "/"; + }, + backStep() { if (this.get('saving')) { return; } this.sendAction('goBack'); diff --git a/app/assets/javascripts/wizard/templates/components/wizard-step.hbs b/app/assets/javascripts/wizard/templates/components/wizard-step.hbs index 7fe656e48c4..52a9b5fbfda 100644 --- a/app/assets/javascripts/wizard/templates/components/wizard-step.hbs +++ b/app/assets/javascripts/wizard/templates/components/wizard-step.hbs @@ -21,6 +21,13 @@