This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/chat/assets/javascripts/discourse/controllers/chat.js
2023-02-08 17:01:12 +10:00

24 lines
474 B
JavaScript

import Controller from "@ember/controller";
import { inject as service } from "@ember/service";
export default class ChatController extends Controller {
@service chat;
@service chatStateManager;
get shouldUseChatSidebar() {
if (this.site.mobileView) {
return false;
}
if (this.shouldUseCoreSidebar) {
return false;
}
return true;
}
get shouldUseCoreSidebar() {
return this.siteSettings.navigation_menu === "sidebar";
}
}