mirror of
https://github.com/hanzoai/forum.git
synced 2026-09-30 21:51:19 +00:00
* `@ember/owner` instead of `@ember/application`
* `discourse-i18n` instead of `I18n`
* `{ service } from "@ember/service"` instead of `inject as service`
18 lines
609 B
JavaScript
18 lines
609 B
JavaScript
import Component from "@glimmer/component";
|
|
import { action } from "@ember/object";
|
|
import { getOwner } from "@ember/owner";
|
|
import { service } from "@ember/service";
|
|
import ChatModalThreadSettings from "discourse/plugins/chat/discourse/components/chat/modal/thread-settings";
|
|
import ChatFabricators from "discourse/plugins/chat/discourse/lib/fabricators";
|
|
|
|
export default class ChatStyleguideChatModalThreadSettings extends Component {
|
|
@service modal;
|
|
|
|
@action
|
|
openModal() {
|
|
return this.modal.show(ChatModalThreadSettings, {
|
|
model: new ChatFabricators(getOwner(this)).thread(),
|
|
});
|
|
}
|
|
}
|