Files
discourse/plugins/chat/assets/javascripts/discourse/components/styleguide/chat-modal-archive-channel.js
Jarek Radosz 038e5deb2a DEV: Clean up imports (#28060)
* `@ember/owner` instead of `@ember/application`
* `discourse-i18n` instead of `I18n`
* `{ service } from "@ember/service"` instead of `inject as service`
2024-07-25 15:09:06 +02:00

22 lines
665 B
JavaScript

import Component from "@glimmer/component";
import { action } from "@ember/object";
import { getOwner } from "@ember/owner";
import { service } from "@ember/service";
import ChatModalArchiveChannel from "discourse/plugins/chat/discourse/components/chat/modal/archive-channel";
import ChatFabricators from "discourse/plugins/chat/discourse/lib/fabricators";
export default class ChatStyleguideChatModalArchiveChannel extends Component {
@service modal;
channel = new ChatFabricators(getOwner(this)).channel();
@action
openModal() {
return this.modal.show(ChatModalArchiveChannel, {
model: {
channel: this.channel,
},
});
}
}