diff --git a/app/assets/javascripts/discourse/app/components/d-navigation.js b/app/assets/javascripts/discourse/app/components/d-navigation.js index 34c4c75321d..2153fc5f9ce 100644 --- a/app/assets/javascripts/discourse/app/components/d-navigation.js +++ b/app/assets/javascripts/discourse/app/components/d-navigation.js @@ -5,7 +5,6 @@ import discourseComputed from "discourse-common/utils/decorators"; import { NotificationLevels } from "discourse/lib/notification-levels"; import { getOwner } from "discourse-common/lib/get-owner"; import { inject as service } from "@ember/service"; -import showModal from "discourse/lib/show-modal"; export default Component.extend(FilterModeMixin, { router: service(), @@ -163,9 +162,5 @@ export default Component.extend(FilterModeMixin, { this.createTopic(); } }, - - inviteUsers() { - showModal("create-invite"); - }, }, }); diff --git a/app/assets/javascripts/discourse/app/templates/components/bootstrap-mode-notice.hbs b/app/assets/javascripts/discourse/app/templates/components/bootstrap-mode-notice.hbs index 66b0a9e8b72..aa9fb8b0b4c 100644 --- a/app/assets/javascripts/discourse/app/templates/components/bootstrap-mode-notice.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/bootstrap-mode-notice.hbs @@ -1,5 +1,13 @@
- {{this.message}} +
+ {{this.message}} +
+
+
+ {{#if this.site.wizard_required}} + + {{/if}} +
diff --git a/app/assets/javascripts/discourse/app/templates/components/d-navigation.hbs b/app/assets/javascripts/discourse/app/templates/components/d-navigation.hbs index d4efd2c880d..2e793cfaa8b 100644 --- a/app/assets/javascripts/discourse/app/templates/components/d-navigation.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/d-navigation.hbs @@ -39,19 +39,6 @@ category=this.category tag=this.tag}} /> - {{#if (and (or this.site.siteSettings.invite_only this.site.siteSettings.bootstrap_mode_enabled) this.currentUser.admin)}} - - {{/if}} - - {{#if (and this.site.siteSettings.wizard_required this.currentUser.admin)}} - {{#unless this.site.mobileView}} - - {{d-icon "pencil-alt"}} - {{i18n "bootstrap_wizard_link_title"}} - - {{/unless}} - {{/if}} -