This new site setting replaces the `enable_experimental_sidebar_hamburger` and `enable_sidebar` site settings as the sidebar feature exits the experimental phase. Note that we're replacing this without depreciation since the previous site setting was considered experimental. Internal Ref: /t/86563
23 lines
445 B
JavaScript
23 lines
445 B
JavaScript
import Controller from "@ember/controller";
|
|
import { inject as service } from "@ember/service";
|
|
|
|
export default class ChatController extends Controller {
|
|
@service chat;
|
|
|
|
get shouldUseChatSidebar() {
|
|
if (this.site.mobileView) {
|
|
return false;
|
|
}
|
|
|
|
if (this.shouldUseCoreSidebar) {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
get shouldUseCoreSidebar() {
|
|
return this.siteSettings.navigation_menu === "sidebar";
|
|
}
|
|
}
|